|
At this time, every day, a ton of questions start getting posted. Most of them make no sense.
How do you call a javascript function from a link button ? You call it. How does it matter that it's not in a grid ? What are you trying to do exactly ? What have you written and what is going wrong ?
I can't work out how your question makes sense.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
What is the problem??
use
<asp:linkbutton OnClientClick="javascript:yourfunction()" ... >
|
|
|
|
|
Thanks for ur reply. I got the solution
|
|
|
|
|
when u got the solution mark it as answer for him
|
|
|
|
|
i have a master page called master.master
and a page in a folder "MyFolder"
when i'm trying to create a webform page in that folder that inherits the master.master page it doesn't inherit anything and no errors appears
when i put the master page and the webform in the root directory it works !!
what is the problem??
thanks in advance
|
|
|
|
|
You copy the same page, or you create them at those levels ? Anything you create in the designer, uses the folders to create namespaces, perhaps it's a scoping issue ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
How do you know that it doesnt inherits anything?
Check the Page header in design view.. of the ContentPage and see if path of
MasterPageFile is proper one
|
|
|
|
|
sure i did see the design
it seems like no style sheet applied to the page but i can see the content placeholders on the page !!!
|
|
|
|
|
Try to use
../
for one folder
or try using delete privacy data in ie explorer
|
|
|
|
|
i did , it sees the master now but without style sheet applied to master !!
i can see the content placeholders with no style sheet to master
|
|
|
|
|
drag and drop the css style sheet in the head section of the page
in where u need to use
<link href="../App_Themes/Theme1/StyleSheet.css" rel="stylesheet"
for my web i used this
|
|
|
|
|
Database:Oracle
Drag and drop the gridview on ASP.NET webform.
Right clicked on gridview and selected show smart tag.
Tried to configure the database.
Tables present in the user (mentioned in connection string) are not visible in drop down.
Although working fine when I try to use Query option.
|
|
|
|
|
your best bet is to abandon all these wizards and try actual programming. That way, you have control over what is going on and can fix it easily.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
U r right. I had to ultimately switch over to manual one only.
But I saw the following loopholes in manual mode:
1. Row_updating event happens but not row_updated. same holds true for delete also.
2. Moreover, wizard helps you to generate code for update, delete, etc, but manual takes lot of time.
Plz see if you know the solution of any of the above point.
|
|
|
|
|
amittinku wrote: Row_updating event happens but not row_updated. same holds true for delete also.
I don't follow this.
amittinku wrote: Moreover, wizard helps you to generate code for update, delete, etc, but manual takes lot of time.
Any code that places the SQL in the presentation layer, is not production quality ( in fact, it's a mess ). That's one more reason to never use the wizards.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi
I am developing a web application which is an intranet site using asp.net and c# and Sqlserver2005. It holds all important data about the employees, their leaves, salary, travel expenses ........ It has session timeout (it means if the portal is idle for sometime the session gets expired). The session timeout is 20mins. Even if i increase the time it is not getting effected. Is it a good practice to remove the session timeout(the session never gets expired)
Thanks and Regards
Naina
Naina
|
|
|
|
|
nainakarri wrote: Is it a good practice to remove the session timeout
Never.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
nainakarri wrote: Even if i increase the time it is not getting effected. Is it a good practice to remove the session timeout(the session never gets expired)
No, it's not. Indeed, you shouldn't be storing much in the session anyhow, perhaps just an id or list of ids. If you need to get the employee data, you should pull it from the DB.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks for the quick reply,request please tell me what is the major drawback of not using the session ?
Regards
Naina
Naina
|
|
|
|
|
nainakarri wrote: please tell me what is the major drawback of not using the session ?
I think you've got it backwards. The major drawback of the session is that it uses resources. You never want those resources to be used forever, which is what you're advocating, and you want to limit how much you use those resources, which means using the session only when you have to ( for example if you store an id in the session, you can get all the other info direct from the DB )
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I am unable to understand frankly speaking what you have answered.
May be am not clear with the question i have posted.
I want to know why it is not advisable not using a session timeout.
Bcos i am going through few sites where the session never ends. So in my web application what could be the problem if i dont use the session timeout.
Thanks in advance
Naina
Naina
|
|
|
|
|
nainakarri wrote: I want to know why it is not advisable not using a session timeout.
Because the session object should be avoided at all costs, and because you certainly don't want a situation where every user fills the session with data that sits there forever, taking space on your server.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
There [^]is a nice article on Sesion in CP.
You might want to read this.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|