|
Hello..i have a check box on my content page i want to access this in aspx.cs page..
Thanks..
|
|
|
|
|
buy a book on ASP.NET and follow the examples. Even if I explained this to you in depth, you're going to get stuck again if you don't understand the fundamentals and lose a lot of time waiting for answers here that you can understand.
The checkbox has a name property, you access it by it's name.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks..in my content page i have table in which i have added checkboxes dynamically..i have used page.findcontrol and form.fincontrol and this.fincontrol but not able to find a check boxes..
Thanks..
|
|
|
|
|
When you add controls dynamically, their viewstate is not restored unless you add them before page load, because it's just before page load that viewstate is restored.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi.
In a web form I have 2 user controls.
In one of them I have some textBoxes, and in other one By clicking a button in webform, I need to read the Text property of TextBox of first usercontrol.
But, by clicking the button, the text property is empty. It seems that by PostBacking the webform, usercontrols reLoaded and the stste of them not saved
Best wishes
|
|
|
|
|
When do you check the value ? Does your code ever set the value ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Yeah! After entering the value in the TextBox, and hitting button
Best wishes
|
|
|
|
|
Gosh, do you believe that you answered my questions ? Where in your code do you check it, and does your code ever set an initial value anywhere ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Sorry! the TextBox is not knly.
I create it an some other controls (I don't know how many, it depends to user request) are created dynamically in code and add to a table control. by clicking the button I iterate throw rows in table, but the the table is without row, but before click it had.
2 userControls, first one is in second one and there is a button in second one, and the second one is in a web page.
Thank you for your attention
Best wishes
|
|
|
|
|
Hi, recently I've been updating my website on my computer and then I copy the pages that I've updated and place them on the server but then I'll have to request these pages from the browser the first time coz it would be slow the first time coz they are not precompiled.
So, I was thinking of precompiling these pages only and not the whole website.
I don't want to precompile the whole website coz the web.config file and the app_data folders on my computer are different from those on the server. So, how exactly can I do that?
modified on Wednesday, January 21, 2009 6:39 AM
|
|
|
|
|
you can't do it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
Why did you ask if you didn't want the answer ?
What you're asking is dumb anyhow - so it's a bit slow the first time, because it's compiling. You want to do extra work to spend the time compiling locally in order to save the same time on the server ? Just get over it - the first page request takes a few moments. So what ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks anyway..but my question isn't dumb.
If it's dumb you shouldn't have bothered answering it!
|
|
|
|
|
No this is a dumb question.
Good luck with that. Why the hell would you want to compile part of website?
I didn't get any requirements for the signature
|
|
|
|
|
when i go to http://localhost I get an authentication required page popped up. What username and password should I use? My Windows account or what?
Please help
|
|
|
|
|
serima nazarian wrote: when i go to http://localhost I get an authentication required page popped up. What username and password should I use? My Windows account or what?
This is comming because of Windows Authentication mode selected on your Virtual Directory.
serima nazarian wrote: hat username and password should I use? My Windows account or what?
Yes
If you want to stop it you can set Anonumous Access for that folder or can configure IE for automatic login with your current credentials.
Please let me know if you need more information on that .
|
|
|
|
|
Thanks for your help, but I have no clue about how I should do what you have suggested!
|
|
|
|
|
Start > Run > Inetmgr [ It will open IIS ]
>Right Click on Default Sites / Virtual Directory
>Properties
>Goto Directory Security Tab
>Click On Edit
---------------
Now check What I have already suggested
|
|
|
|
|
Thanks again I did that but I still get the same error message.
|
|
|
|
|
Close Browser. Restart IIS , then Open a new browser Try it again . It should work !!
|
|
|
|
|
Dear sir,
I know how to set the src of a iframe, for example, I can use
Dim frame1 As HtmlControl = Page.FindControl("itest")
frame1.Attributes("src") = Me.TextBox1.Text.Trim
However how can I get the current src of a iframe after user clicking
several times on the iframe??? when I try to get the value of frame1.
Attributes("src"), what I get is the original src I set to it.
How can I do this?
regards,
|
|
|
|
|
Hi,
I want to run a function on a text changed event of a text box which is generated dynamically in a place holder.
|
|
|
|
|
You can fire onkeypress event of testbox in javascript.
|
|
|
|
|
can you please send me the java script code
|
|
|
|