Following is the sample code you can use to parse your querystring and return NameValueCollection protected void Page_Load(object sender, EventArgs e) { String currurl = HttpContext.Current.Request.RawUrl; String querystring = null ; // Check to make sure some query string variables // exist and if not add some and redirect. int iqs = currurl.IndexOf(‘?’); if (iqs [...]
Posts Tagged ‘ASP.Net’
Using ParseQueryString to get QueryString Values
Posted in Technology, Visual Studio, tagged ASP.Net, HttpUtility, NameValueCollection Example, ParseQueryString, Querystring on July 27, 2009 | Leave a Comment »
JQuery in Visual Studio
Posted in Javascript, JQuery, Technology, Visual Studio, tagged ASP.Net, DotNet, JQuery, Visual Studio on July 18, 2009 | 2 Comments »
A big part of the appeal of jQuery is that it allows you to elegantly (and efficiently) find and manipulate HTML elements with minimum lines of code. jQuery supports this via a nice “selector” API that allows developers to query for HTML elements, and then apply “commands” to them. One of the characteristics of jQuery [...]
Disable copy & paste in asp.net textboxes
Posted in Javascript, Technology, Visual Studio, tagged ASP.Net, Disable Copy, Disable Copy Paste, Disable Paste, Javascript functions, Textbox, Textbox events on July 14, 2009 | 1 Comment »
Below is the line of code to disable copy & paste event in textbox. <asp:TextBox onCopy=”return false” onPaste=”return false” ID=”textboxname” runat=”server” ></asp:TextBox> Hope this helps Enjoy!!!
Use CS and VB files in App_Code
Posted in Technology, Visual Studio, tagged App_Code, ASP.Net, C#.Net, Class files, Class libraries, Code Compilation, Compilation, VB.Net, Visual Studio, Web.Config on July 11, 2009 | 3 Comments »
Detailed explanation of using csharp and vb files in app_code.
Reading Database value in Javascript
Posted in Javascript, Technology, Visual Studio, tagged .Net, ASP.Net, Database, Javascript, Javascript and Database, SQL, SQL 2005, VS.Net on July 8, 2009 | 3 Comments »
Today while developing a page, we felt need to read database into javascript array. And we were confused if at all we can do this. So finally after googling on this we found a workaround. So I just thought of sharing this with you because I think this is really helpful. <script language=”JavaScript” type=”text/javascript”> var [...]
