Question:Viewbag variable always getting null value while accessing it in view, while using RedirectToAction to call the redirection
Description:How to set Viewbag before making a redirection call? or need to know if there is a mistake in Displaying ViewBag after RedirectToAction ? I have set the value of my viewbag variable in the controller method then use the RedirectToAction method for the redirection but when trying to use the value of the variable in my view that is always returning null value.I have use following code in my controller method. public ActionResult Index1 () { //some code logic placed here ViewBag.Myvariable = "Some value"; return RedirectToAction("Home"); }
Posted by: Khalid Abbas | Posted on: Jul 16, 2018
Question:What is the difference between/ purpose of the @@IDENTITY, SCOPE_IDENTITY(), IDENT_CURRENT ?
Description:I want to know the differences between or purposes of each one of the @@IDENTITY, SCOPE_IDENTITY(), IDENT_CURRENT() .
Posted by: Jhon Anthony | Posted on: Jul 12, 2018
Question:What is the use of ExecuteScalar,ExecuteReader and ExecuteNonQuery methods?
Description:What is the difference between ExecuteScalar,ExecuteReader and ExecuteNonQuery methods and In what conditions which one to use
Posted by: Jhon Anthony | Posted on: Jul 11, 2018
Question:What are the main differences between soap and rest web services?
Description:I am unable to understand the exact differences between the soap and rest web services and when to use which one and why?
Posted by: Khalid Abbas | Posted on: Jun 27, 2018
Question:After installing Sitecore Rocks in visual studio 2017, when i open the visual studio it throws error "The Sitecore Template Wizard is not installed"?
Description:I have just installed the fresh Sitecore Rocks in visual studio 2017, when i open the visual studio it throws error "The Sitecore Template Wizard is not installed" and it also show option "Select Where to install the Template Wizard". so if this is a must that is need to be installed then where it should be installed ?
Posted by: Junaid Aziz | Posted on: Jun 08, 2018
Question:how to install sitecore 9 ?
Description:I am new for sitecore and installation of sitecore 9 seems a bit tricky , any verified article which will help me in this regard will be appreciated! Note: I have already installed SQL 2016 and Visual studio 2017 on my machine.
Posted by: Junaid Aziz | Posted on: Jun 07, 2018
Question:how to track down the recent updates that are made in my database ?
Description:I am using a cms and some recent updates are made in my mssql database , I have no clue about in which table record is inserted or updated !!! any sql query which can help me in this regard
Posted by: Junaid Aziz | Posted on: May 28, 2018
Question:string.Format in C# always returning error 'Input string was not in a correct format.'
Description:I have to format following string as mention in the following code. string.Format("gtag('event', 'conversion', {'send_to': '{0}/{1}'});", "aw-xxxx", "xxxx"); But it always throwing error 'Input string was not in a correct format.' Needs to know what is wrong in the above code.
Posted by: Junaid Aziz | Posted on: May 10, 2018
Question:How to avoid multiple submissions of a form on client side?
Description:What is happening in my case is user submit the form multiple times when form is already submitted and takes time because of the slow server response time suggestion needed to Stop or prevent form's multiple submissions on client side
Posted by: Jhon Anthony | Posted on: May 09, 2018
Question:What is Cleanest way to check for Null value in Lambda Expressions, C#?
Description:Currently i am using following code and its not working,where Items is a list and GetHierarchicalTaxons("Category") is also returning a list which should have at least a item to pass the condition. var Items=Model.Items.Where(i => i.GetHierarchicalTaxons("Category") != null);
Posted by: Khalid Abbas | Posted on: Feb 13, 2018