|
Dear All,
Is there a way to dynamically change the style sheet of a page but on the client side by javascript.
I know you can do this with javascript but the problem is how to link it with a button in asp.net.
Thanks for your help,
Chris
|
|
|
|
|
ChrisFarrugia wrote: is how to link it with a button in asp.net.
You can use this.style.color='#fffff' with any javascript event handlers. or use
var obj =document.getElemntById("YourButtonId");
obj.ClassName = "New ClassName";
|
|
|
|
|
Hi,
I have a table web control whose rows are generating dynamically and I am adding dropdownlist to each row dynamically.
Now I want to traverse through each row of the table web control, how can I do that.
Thanks & Regards
Mishra
|
|
|
|
|
Ballita wrote: Now I want to traverse through each row of the table web control, how can I do that.
Using a for or foreach loop ?
|
|
|
|
|
I need some help. How can I create dynamic Server Controls for ASP.NET 2.0 using SQL 2005. Meaning the page must be dynamically build using data from SQL...
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
Illegal Operation wrote: How can I create dynamic Server Controls for ASP.NET 2.0 using SQL 2005
This doesn't make any sense. If you are familiar with creating custom server controls, then what is the specialty on creating controls that serves dynamic content ?
|
|
|
|
|
This is a situation where I need to load a group of user controls programmatically at runtime because the number of controls required is unknown at design time.
Basically what needs to happen is the aspx page needs to load the controls needed for a specific selection made in connection with SQL.
In other words:
You have a question in SQL, Question 1 and this question has three options by way of Radio Buttons. If question 1 is asked, the aspx page needs to dynamically create the form with the three radio buttons.
Hope this gives you a better idea of what I need to do. I think I will need to use a repeater in aspx.
Thanks!!
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
Illegal Operation wrote: I think I will need to use a repeater in aspx.
Yes that could be a good solution rather than custom server controls. But if you want ASP.NET to keep your repeater dynamically created control's state, make sure that you are creating it before viewstate's are loaded. Ideal place for dynamic controls would be Init() event.
|
|
|
|
|
Thanks
I am going to try it and let you know if it works...
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
I published the website after then on the same machine(for local host browsing puposes) i tried to create the virtual directory of the same.after creating the virtual directory , i ws browsing the directory in IIS.there while browsing the directory , i got the following error.
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
Soniagupta1@yahoo.co.in
|
|
|
|
|
Reset your IIS:
Got start->run
iisreset
execute above said command
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
still same problem
Soniagupta1@yahoo.co.in
|
|
|
|
|
Please make sure the set application vesion (.Net 1.1 or 2.0) for vitual directory.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
it is 2.0.50727
Soniagupta1@yahoo.co.in
|
|
|
|
|
yes
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
yes the problem status is same.
Soniagupta1@yahoo.co.in
|
|
|
|
|
Go to
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 in a command prompt and run the command aspnet_regiis.exe -i
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
i have done it.stills same problem lying,
Soniagupta1@yahoo.co.in
|
|
|
|
|
IE->Tools->Internet Options->security Tab->select trusted site->click on site button->unchecked : Require server varication (htts)...
If still your problem exist then go to Google. Because don't have more.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
if i create the vitual directory of the project where the code is residing , there occurs no problem.problem is arisig if i create the published folder and then creating the virtual diectory.and finally browsing the page there is occuring the error.
y it is happening ?
Soniagupta1@yahoo.co.in
|
|
|
|
|
The code file should be also there.
If you want keep there pages only then you should deploy this project.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Have you checked this[^] ?
|
|
|
|
|
i have chached this link already . and i am using only one version i.e 2.0
Soniagupta1@yahoo.co.in
|
|
|
|
|
Try with creating new application pool ? By default IIS will be using default pool for all websites. Try creating a new application pool and deploying your APP over there ? Check this[^] to get started.
|
|
|
|
|
Change Application Protection pooled in Directory TAB
Best Regard
Pathan
-- modified at 5:11 Monday 17th September, 2007
---------------------------------------------------
|
|
|
|