|
I don't think that directly you can use it in your code behind. What you can do is to store that in one hidden field and then use it in your code behind.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Store it in a hidden field, and use the value on the next postback.
|
|
|
|
|
Add a hidden Control(with runat=server) to your page. Access that control in your javascript and save the value that you want to take it to the webserver.
After the request gets submitted to the server, you can access the hidden control from your aspx code-behind and proceed.
Ravie...
Ravi Gopal.
|
|
|
|
|
Hello friends.
I am a programmer in asp.net c# i need your help i want to format the price in some format, like 12,345.00 is there any keyword to format the price now price is 12345.00 i need your help...
alex malayil
|
|
|
|
|
You can take help of this.[^]
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hai Thanks .it's working now.
|
|
|
|
|
always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
Hi all,
i created a class for my table with fields as properties and methods for the CRUD operations
i take an object, fill it, and then call the function i need and all is working fine
i want to create a function to dispose or free the memory from that object after applying the function by calling another function like
objName.Dispose()
how can i implement that?
Best Regards
3ala2
|
|
|
|
|
|
Hi..
I need your advice to buy good books in javascript and css and ajax.
I am too late but i will never give up
|
|
|
|
|
|
Thank you very much...
I am too late but i will never give up
|
|
|
|
|
How about "Ajax in Action"
|
|
|
|
|
After I read Amazon pages about Ajax I think "Pro Ajax" is the best.
I am too late but i will never give up
|
|
|
|
|
i am trying to write the inner html of a "div" tag into a stream writer. when i use simple tags like images and paragraphs, the file is created successfully. but when i add a third party control inside the div tag, the "MydivTag.InnerHtml" throws an error: Cannot get inner content of MyDivTag because the contents are not literal. How do i get the content of my div tag in this case? heres the code that gives the error:
This is outside content.
<DIV id="MyDivTag" runat="server">
<span class="normal">This is inside content.<br>
blah blah blah
</span>
<cc1:outsideControl id="FileUp" runat="server"></cc1:outsideControl>
<img src="59.jpg">
<input id="oone" name="one" value="one" />
</DIV>
If i get rid of the <cc1>... tag i get no errors.
Thanks in advance.
Ritesh
|
|
|
|
|
problem is that you try to write ASP.NET tag into HTML output. Note that ASP.NET page is rendered as HTML before posted to a client, it means that your control has to be rendered as HTML first.
Instead of including your control tag into output, call outsideControl.Render(HtmlTextWriter writer) method in your code and write content of writer into your output. It should works.
Pilo
|
|
|
|
|
Hi there....
I created two dropdownlist boxes[HTML Controls]. By using javascript i loaded some values to the both boxes. Now how can i get that selected value of both dropdownlist boxes in session variable. If i use hidden control means, it's not getting properly. Please assist me....
Thks n Advance
Sam.M
|
|
|
|
|
Replace HTML dropdownlist with ASP.NET DropDownLists - that's the easiest way and you can access their values in code behind (or store them into session if you need).
Or you can add runat=server attribute to them and declare them in code behind. (However, I recomend you to go for a first option)
By default, HTML is client side, you can not access or set values if you don't make your controls server side by setting runat=server attribute.
Pilo
|
|
|
|
|
Hi friends
i want to hide title bar of the page.
Is it possible in asp.net?
Imran
|
|
|
|
|
You can set title of a page in ASP.NET 2.0 by setting Page.Title property.
However, you can't hide this title. Maybe javascript could help, don't ask me how, ask google
Pilo
|
|
|
|
|
Hi, I'm programming in asp.net 2003. I designed a search utility using javascript in asp.net. The code wis working well in the asp.net page. I'v a text box called txtSearch.
To reference this textbox value, I'm using this javascript in a javascript function called at the onkeypress event of the text box.
var pre = document.getElementById ("txtSearch").value;.//(I'm running it in IE 4 now)
Now I want to convert it to a user control. This statement is not working for the user control. I tried to trap the value with this:
var sndr = window.event.srcElement;
var pre = sndr.text;
alert (pre);
the alert showed "undefined"....
can u tell me what r the other ways of getting the value?..pls
There is no final defeat untill you stop trying.......
|
|
|
|
|
u have to do some functionality before the getElementById method
u need to concat the user control instance id then "_" then the element name like this:
var strSearch = "ucUserControl1_" + "txtSearch";
document.getElementById(strSearch );
This way u can access it
hope this would help
Best Regards
3ala2
|
|
|
|
|
Hi Friends,
I want to run an Client based .exe (like calc.exe) from the aspx page of my site. I donot want to use the .wsh file. Is there any way??
Thank u in advance
Nitesh
|
|
|
|
|
Not if you don't install some stuff on client side (like ActiveX or so).
Imagine security problems, if it would be possible to run from page on internet any .exe file on your computer!
Pilo
|
|
|
|