|
can you explain how i would do this then. Of what type are the sessions?
|
|
|
|
|
I figured it out.
Instead of passing the variables I had to pass the session. So i had to create a HttpSessionState and store Session into it. I then pass this HttpSessionState to my method. Now i can write to the variables and they can be accessed outside the method on a different page.
|
|
|
|
|
You don't need to pass the session
you can access it using:
System.Web.HttpContext.Current.Session["var"];
|
|
|
|
|
Hey guys,
I write a custom object (IXmlSerializable) and write custom methods (ReadXml() and WriteXml()) for serialization. When I instanciate the object and serialize it to and xml file on my harddrive, everything works fine (good for me :->) and when deserializing from that file, I've got my object instance back, which is exactly what you'd want.
Now the object's purpose is being sent to- and from a webservice, and thus started developing a webservice. Now everything went fine, but when I try to consume the webservice, it says the returned object is a System.Data.DataSet type
The webservice and the client app both have a reference to the same dll containing the object. If I invoke the webmethod while debugging, I see the exact XML I want (which is the same as the xml when serialized to a file)
Am I forgetting something.. Is sending custom objects through a webservice forbidden or something??
Thanks for helping
|
|
|
|
|
Eduard Keilholz wrote: Am I forgetting something
Seems you forgot Google. Using it I found this[^]
|
|
|
|
|
Erhm, in fact I did not forget google:->, I just didn't find this article... However, it's very helpful, thanks for the help!
|
|
|
|
|
hi,
i am doing an application i which, iam having a form which includes textboxes,and cascading dropdownlists and one gridview.
what i did in the code is, when i click on the gridview i wrote a stordprocedure to take all values wat i want from the database and bind it in one dataset
and assigning the dataset values to the corresponding textboxes and dropdownlists .
for ordinary dropdownlists, the values are populating correctly in their indexes using this code as show below
dropdownlist.SelectedIndex = dropdownlist.Items.IndexOf(dropdownlist.Items.FindByText(dataset.Tables[0].Rows[0]["column1"].ToString()));
but for cascadingdropdownlist,this code willnot work
if any body knows the answer please reply me
|
|
|
|
|
hi.
i am doing an application in which , i want to implement vallidatorcalloutextender
when i implemnt this control without updatepanel it is working smoothly but when i put this in updatepanel it is showing some javascript error like this
"Sys.ArgumentNullException:Value cannot be null Parameter name:element"
if anybody knows please reply
|
|
|
|
|
Don't CrossPost the same question in Multiple Forums.
SSK.
|
|
|
|
|
hi all please do help me
i have a gridview and i have filled it with the help sqldatasource.It contains 5 columns one of them is ber_id.
I have also enabled the edit update delete buttons...
now the question is when i edit the row i wanna limit the ber_id column that it should allow the user to type 7 characters only...
i have tried javascript but was not able to achieve this
how can i achieve this ?
|
|
|
|
|
You have this in THREE forums.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
I really would listen to lecky, don't want to see her mad....
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
I'm going to need therapy for all the obliviots lately!
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
SSK.
|
|
|
|
|
Hi there guys.
I have a page designed in HTML(Dreamweaver) and another in VB.NET(aspx).I have a link from the aspx page to the HTML page.I included the HTML solution into the aspx folder jus so the solution can see it.The problem is, when I run and click on the link.I get this message:
The HTTP verb POST used to access path '/Final Airliquide TelephoneList/Home Page/HomePage.htm' is not allowed.
I have tried to look at my C:\WINDOWS\system32\LogFiles\WUDF but my WUDF is empty so I cant change anything in there.I tried looking for my Global.aspx but cant find it.What could be the problem??
Thanx in advance guys
kagiso
|
|
|
|
|
matjame wrote: HomePage.htm'
I don't HTML pages have any serverside filters to process inputs from the server. And when you POST input from browser to server, the normal HTTP mechanism is that the page specified in FORM action recieves the input and does some processing. There is a related discussion thread on this problem here: http://www.eggheadcafe.com/software/aspnet/30269451/http-verb-post-used-not-a.aspx[^]
matjame wrote: C:\WINDOWS\system32\LogFiles\WUDF but my WUDF is empty so I cant change anything in there.
What do you want to change in the log? Also, log files are periodically updated. When you do a IISRESET, you can force flushing of entries and see the log file updated.
|
|
|
|
|
One of the forums I visited adviced that I change the settings in the logfiles.But mine were empty.Its jus that everyone who received this message was working on a different problem.We are nt doing similar things.But this message keeps showing up and in my instance I don knw what could be the problem.My links should jus connect straight to the HTML pages without any problem but gives me this errors instead.
kagiso
|
|
|
|
|
Please post this in the ASP.net forum if you want more ASP.net savvy people to look at your problem.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
I have a web form that once submitted can take a while before the confirmation page occurs. So I need to be able to stop the user from clicking on any part of the form once submit has been pressed(before the confirmation appears). I have tried using javascript:
document.getElementById('<%= Button1.ClientID %>').disabled = true;
This does disable the button but then the code behind the button does run. I have a simerlar problem when i disable elements of the form, they cannot be used in the code behind the button because once disabled they are not sent back to the server.
How can I disable the form and still get the processing of the form to work?
|
|
|
|
|
When you disable a form element that does not get submitted. I would say that you can hide the form with some progressbar.
|
|
|
|
|
I have an img tag:
<img src="../about.png" name="progressImage" alt="LoadingImg"/>
and when a button is pressed, as well as other things, i want to change the image source. At the momnet i have the following line:
document.progressImage.scr = "../logo.png";
this seems to do nothing. Im sure this is a simple idea but i cannot see whats wrong.
Any Ideas?
|
|
|
|
|
<img src="../about.png" id="progressImage" alt="LoadingImg"/>
(changed name to id there)
and javascript :
<br />
var imageObject;<br />
imageObject = document.getElementById('progressImage');<br />
if (imageObject != null)<br />
imageObject.src = '../logo.png';<br />
hope that works...
|
|
|
|
|
Thanks this partially works.
The old image dissapears but the new image cant be seen. However it is there, if i right click where the picture should be and select show picture is appears.
Any ideas?
|
|
|
|
|
Erhm.... that's damn strange!! Maybe it's a new feature... haven't got a clue.. are the images large so it takes a long time to load or something??
You have no OnLoad event going on which switches the visibility or something??
|
|
|
|
|
ceejeeb wrote: document.progressImage.scr = "../logo.png";
Instead of src , you have spelt it as scr .
|
|
|
|