|
just re-bind datagrid...
<< >>
|
|
|
|
|
Hello Friends,
I am getting an error on the pages i am trying to access database.
PLease have a look to the error and help me our with all the possibilities.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.<br />
Deepak Surana
|
|
|
|
|
I'm not sure I can help...but can you debug your app to see which line of code causes this exception?
<< >>
|
|
|
|
|
There is no error coming up on my local machine, but only when i upload it to a server.
Deepak Surana
|
|
|
|
|
Hi,
I think you need to register 'System.Security.dll' in your server.
Regards,
Sandeep Kumar.V
-- modified at 1:42 Friday 4th May, 2007
|
|
|
|
|
HI all,
Here am using 2 user Controls.One Usercontrol(Button.ascx) is having Button and another Usercontrol(Grid.ascx) is having Datagrid.
Am placing these 2 controls on different page(New.aspx).
Here i want to fill the datagrid in the Bitton Click event.
I used delegates and Enabled Buton click event and Datagrid Bind event in the New.aspx page.Here the click event is enabled but Datagrid event is not firing and its not entering into the event.
Pls guide me How to call an event within the event which r in difft UCs.
Thanks in Advance
Have a Nice Day Dudes
|
|
|
|
|
I am trying send a hyperlink in mail. It worked correctly for gmail, hotmail etc. But it is not showing the link in some email providers. This is the code what i am using for link.
str += "<strong><a href='http://" + httphost + "/accounts/Vendor/QuoteResponse.aspx?req=" + qs.ToString() + "'>";
str += "Click Here To Quote</strong></a>";
Where I am going wrong ?
printf("Navaneeth!!")
www.w3hearts.com
|
|
|
|
|
What the user receives at email client? IMO, email client setting should enable HTML view...
<< >>
|
|
|
|
|
set target attribute to _blank such as:
<a href="http://www.mysite.com" target="_blank">home</a>
We Can Do Anything, If We Want It
|
|
|
|
|
How do i prevent users of my web application from bypassing my User login to other pages in my asp.net web site? i.e I have pages something like
login.aspx
purchase.aspx
stock.aspx
sales.aspx
if any user enter my site thru
http:\\xxx.xxx.xx.xx\sales.aspx
the user should be redirected to login.aspx
t.aransiola
|
|
|
|
|
Use session variables to find out if the user has logged on, if not redirect him to login page.
|
|
|
|
|
Use session variable to check if user already logged in or not...
<< >>
|
|
|
|
|
Hiii
In longin.aspx, after validating the user if the user is a valid user then store his name in a session variable.....
In other pages(like purchase.aspx, stock.aspx, sales.aspx) check whether session variable contains value or not, if session variable is null then redirect user to login.aspx.
Regards,
Sandeep Kumar.V
|
|
|
|
|
Use FormsAuthentcation.
It is more reliable.
Regards,
Arun Kumar.A
|
|
|
|
|
Wondered if anyone would point that out - have a 5 hehe
"Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman"
(Lilly Allen / Kaiser Chiefs)
|
|
|
|
|
Lol me too... 4 replies and nothing good.
|
|
|
|
|
If you do decide to use session instead of forms auth, keep in mind that sessions die after 20 minutes by default, and that in the meantime, you should clear the session if the user navs away from your site or logs out.
|
|
|
|
|
Hi!
I am facing a problem while freezing the rows of datagrid.
In my grid I have showheader="false". because i have to create header through DHTML.
So,I have inserted rows using DHTML, because row is to be distributed in sub rows.
My problem is while freezing rows it lock scrolling for item/data rows but not for row added on top as Header.
Puneet Singhal
|
|
|
|
|
I have an asp.net form designed for users to display their userid and password, and to change the password.
On display, teh Password box does not display the password value.
how can i do this
t.aransiola
|
|
|
|
|
aransiola wrote: On display, teh Password box does not display the password value.
I think it won't
|
|
|
|
|
it doesn look nice for the user who want to change their password, but sees nothing being displayed. It may connotes that, teh user was without password before
t.aransiola
|
|
|
|
|
Hi there:
you can not set value for password textbox as normal textbox...try this
PasswordText.Attributes.Add("value", "ThePassword");
<< >>
|
|
|
|
|
This is more of a security reason that you don't see the password at runtime, it just ensures that the unmasked password is not displayed in the HTML source.
You could leave the password field blank and the user can give his/her old password and the new password on the screen. If you still think you need to show the password then you can try using the code txtPassword.Attributes["value"] = strPassword;
|
|
|
|
|
Hello there
I'm currently working a datagrid and I would like to add a tooltip with an image if you move the rows. The image is bound to an article id that each row has. My idea is something like this:
Create a method that gets the specific image url for a given article id.
Use e.row.attributes.add to add a javascript that shows the tooltip on mouseover and removes it on mouseout.
Will use the method to pass an argument with the image url to the javascrip
However, after this I'm stuck. I'm having trouble to get a hold of a nice javascript that can take a image url as argument and show it. And I'm not completely sure if I'm on the right way either, especially as the images need to be different and loaded dymically for each row.
Any suggestions what to do?
|
|
|
|
|
An easy way could be adding a tags in the row. And give a title for the tag. That will come as tool tip. It could be something like
<td><a title='<% GetTooltip("YourKey") %>> Your TD text goes here </a>
This won't be the best solution but you can do it very fast instead of going for javascript.
printf("Navaneeth!!")
www.w3hearts.com
|
|
|
|