Hi, I have got the following code in default.aspx.cs (root home page) - public class clsHome : System.Web.UI.Page { string sQS; sQS = Request.QueryString.ToString(); } public string bframe() { string sValue=string.Empty; Response.Write("sQS:" + sQS.ToString()); Response.Write("QS:" + Request.QueryString.ToString() + " - " + Request.QueryString.Count.ToString()); } when i run this code, request.querystring() randomly works or mostly doesnt.. I have also disabled page caching which i had earlier now, only the function is there which i pass on the querystring to a subframe which redirects. any solution on this? What I want to achieve is -- I have 3 frames top, left and 'bottom right' frames, I use Querystring to redirect users from default.aspx page to welcome.aspx page (bottom right frame) so that i want to display the app. page to the user based on Querystring. (Note: the users will get a link from my top frame which emails them about the app. page as my site title will always be my company name as the website is in frames!) please paste code if possible or any help is also fine! Thank you.
codeprojectin
Posts
-
Request.Querystring not coming properly -
Start and use an external applicationHi, 1. Checkout if the external program allows to you to have command line options for updates. like /u etc, to find out use /? or /help 2. Otherwise, use process ProcessInfo to call the application and use Process.Showwindow = false (dont remember the exact function name) and use Sendkeys "{SPACE}" if you still wish to do the old C++ way. 3. The otherway would be to use Win32API to execute commands and get hold of the window.
-
TextBox SelectionSample code - Would be to trap mouseup and Keydown events and check for selectedText property private void textBox1_MouseUp(object sender, MouseEventArgs e) { //this.Text = textBox1.SelectedText.ToString(); if (textBox1.SelectedText.Trim().Length != 0) { textBox1.SelectionLength = 0; } } Dont forget to add in code for Keydown and copy+Paste in Textbox stuff.
-
get folder path in a treenode ?Use the tag property while loading the treeview and get the link from it.
-
C# Sql INSERT statmentRemove the autonumber, and it would be better controlled by Access itself instead of your function. Include the error message in the email. Also, provide the value of sqlString at runtime which would be easy for us to look into.
-
Keeping data in clipboard after app closesClipboard.SetDataObject("Sample Data", true); // True maintains copy after appln exits.
-
stuck on a problem with outlook and c#You are prefixing the sHtml text before the oMailItem.HTMLBody which naturally lands up before the html part which includes .. Try using oMailItem.Body = sHtml; oMailItem.BodyFormat = Outlook.OlBodyFormat.olFormatHTML;
-
How to Close a Form when openning?Thats because we had answered at the same time! believe from various locations. Take care, sorry for the trouble guys for this thread!
-
Change TabControl ItemSize dynamically?this.tabControl1.ItemSize = new Size(Convert.ToInt32(this.Width * 0.1), Convert.ToInt32(this.Height * 0.1)); (Just a random number to have this, The tabcontrol is in Fixed Size mode) and have used the above code in Resize event.
-
How to Close a Form when openning?If at all, you want to do - Override the constructor with parameters public Form3(string args) { if args=="dontshow!" this.Close() // and dispose the object and come out } However, the best and easier way to handle is to do it before hand since you have the parameters in hand before!
-
treeview checkboxThe checkboxes apply for the entire treeview as such, and hence you would have to validate it in your code. In tvwList_MouseMove() event, use eventargs to find tvwList.GetNodeAt(e.X, e.Y) to get the current node, and disable the checkbox there. (nod.Checked = false;)