|
You can Do like this
Response.Redirect(url+"?userName="+MyName);
And on next page
userName=Request.QueryString["userName"]
|
|
|
|
|
You can have URL like this
"ReadMe.aspx?Id=hello&Mode=true"
and can read querystring as
string id=Request.Params["ID"];
string mode = Request.Params["Mode"];
Cheers!!
Brij
|
|
|
|
|
hi to all,
Here i m using master page in tat a tree view control i want to give update progress for each and every treenode changed event. for that i placed the tree view in update panel and passed a trigger like on treenodechanged event. but while executing this its giving err.
Error in Executing child request.
Thanks in advance
sai krishna
|
|
|
|
|
hi........
we are working on tree view but the problem is tree view is expands every node but i want only one node expands every time, mean if already one node is expanded then we try to expand another then automatically other nodes are collapsed ..
Waiting for Response ..............
Best Regards
Rajesh Kumar Chekuri
www.rajeshchekuri.co.cc
www.funnydotnet.blogspot.com
|
|
|
|
|
Not very clear on what you want. So if one node is expanded already and if you try to expand another node, then do you require all the remaining open nodes should be collapsed or it should remain open?
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
yes.....
all the remaining open nodes should be collapsed
Best Regards
Rajesh Kumar Chekuri
www.rajeshchekuri.co.cc
www.funnydotnet.blogspot.com
|
|
|
|
|
You could achieve this easily by using the CollapseAll method from the tree view and then, on the clicked node you could do thisNode.Expanded = true, and recursively do this for all the parents he has using the Parent property.
For instance,
youTree.CollapseAll();
.. on the event
TreeNode currentNode = nodeFromEvent;
while(currentNode != null)
{
currentNode.Expanded = true;
currentNode = currentNode.Parent;
}
|
|
|
|
|
So capture the open event, and close all the other nodes in code.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I know this is not the right place to post this but i don't want to take chances.
I am working on a site where one has to give his personal details including contacts. The person will have to give work contact and a secondary contact. the trick is i have included a checkbox so that if the work contact is the same as the secondary it copies all the values in the work contact into the values of the secondary, displays them like the work contact and simultaneously disable the textboxes so that you can't change the values.
I am using ASP.Net ( of course,lol), and it doesn't work, though i have coded it in the .aspx page but it doesn't reflect when i run the application.
Please if anyone can help lemme know. thanks
|
|
|
|
|
Put the seconday contact in the UpdatePanel of Ajax and make the postback property of checkbox is true. Write code in codebehind for copying from work contact to secondary contct if the checkbox is checked.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Thanks, I'll do that but if you know anyone who can help with the javascript i'd much appreciate it cos of certain constraints.
I mean i would love to use the AJAX as an extension for the final project but i'm not allowed to. so,but i'll try it for my own good. Once again thanks.
|
|
|
|
|
Just try the below and see if it works:
function DoCheck()
{
if (document.myform.checkbox1.checked == true)
//Copy all the control values from WorkContract to Secondarycontact.
//document.GetElementbyId('SecondaryControlname') = WorkContractControl.Values;
}
Add the below in codebehind:
Checkbox1.Attributes.Add("OnClick","DoCheck();");
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
|
Why ajax is needed it could be implemented in plain simple JavaScript??
|
|
|
|
|
sir,
Response.Cache.SetCacheability(HttpCacheability.NoCache)
what is the use of above line code?
|
|
|
|
|
prevent client Cache
Parwej Ahamad
|
|
|
|
|
This doesn't allow caching at the browser
Cheers!!
Brij
|
|
|
|
|
If the browser is told not to cache the page, it means, for example, if you log out and then the user hits back on the browser, the browser won't reload the logged in page from it's cache, it will try to load it again, allowing you to make sure the user is asked to log in. That's the typical reason people use it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi
I have been working on VS2008 and i am using System.Data.OracleClient to connect with Oracle 9i DB.
I am getting the following error when i run the application.
"System.Data.OracleClient requires Oracle client software version 8.1.7 or greater."
Do i need to install oracleclient software on my machine to access oracle db or what should i do?...
How to resolve this please help me..its very urgent..
Thanks in advance.
Regards
Arun
|
|
|
|
|
arunvtyc wrote: "System.Data.OracleClient requires Oracle client software version 8.1.7 or greater."
The error message is clear, isn't it? Yes you need to install it.
arunvtyc wrote: .its very urgent..
Read this[^], this also urgent.
|
|
|
|
|
Thanks navneeth..
can i install an oracleclient in someother machine to acess oracle db
|
|
|
|
|
arunvtyc wrote: Subject: Error: Accessing Oracle db from .net 3.5
Please Don't Cross Post. You have asked for the same question just few hours back.
|
|
|
|
|
Dear All,
I am trying to display records of text data and some image in repeater but requirement is if the record is without image then text should align on left site,
But if the image is in record then first image should display on left side i mean left alignment and text should display beside with image but on he right side of image.
Now i need some help how to display these records in repeater item tag with if condition.
if image if true in image class then first image display on left then text display on right if no image in record then simple text display on left
kindly tell me what should i do.
Sajjad Ali
|
|
|
|
|
I want to remove the file Extention from the URL.
Like - in URL path is like that - http:\\localhost\project1\webform1.aspx
Now I want it only show in the URL like - http:\\localhost\project\webform1
if form have Query string that it shows as it is but with out file extention(.aspx).
|
|
|
|
|
Extension-less URL rewriting is not possible in IIS6.0. If you are using IIS7.0, you can do this.
|
|
|
|