|
Thanks for the reply.
I tried to work out with multiple languages using global and local resources it worked for me but I m really confused with handling the database.
Can you please guide me to any reference? I really need it badly.
Vijay V.
Yash Softech
|
|
|
|
|
Hi! I want to transfer a string from one page to another, I am trying to do like this:
I am putting the URL + the string what I need in a string called url, and then I am doing:
Response.Redirect(url);
then, I am transferred to the next page and I am trying to retrieve the data this way:
username = Request.Params["Username"]
and I got nothing. What is the best way to transfer a data, can someone post some example? I am using VS2005, thx ahead, Laziale
|
|
|
|
|
I think you're trying to used Request.QueryString, rather than Request.Params. I assume that the url ends with ?Username=laziale or something.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
laziale wrote:
username = Request.Params["Username"]
I think it should be
username=Request.QueryString("Username")
Apurv
A man is but the product of his thoughts. What he thinks, he becomes.
.......Mahatma Gandhi
Be the change you want to see in the world.
.......Mahatma Gandhi
|
|
|
|
|
laziale wrote: I am putting the URL + the string what I need in a string called url, and then I am doing:
Response.Redirect(url);
You just need to know the basic of Query String . How to pass Query string.
did you use "?" in the url?
Just have a llok on this Beginner's Article[^]
|
|
|
|
|
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.
|
|
|
|