|
Anees Mitha wrote: Whenever i click on page 1 from any page the page change event does not fire. But when i click on other pages the event is fired properly.
What is page change event ? I have not heard anything like that. Please make your question more clear.
|
|
|
|
|
Sorry its PageIndexChanged event.
|
|
|
|
|
Hi,
I got the solution. Not sure how it worked but when i changed enableviewstate from True to False, every thing is working properly.
Thanks for all the help.
Regards,
Anees
|
|
|
|
|
Please help me by sending the sample codes of how to convert html(Usually a normal html page in the current project) to xml and store it in sqlserver2005 as xmldatatype and then convert back to html as a different page when clicking a button.
|
|
|
|
|
|
I tried that link, But didnt help me , mainly because my html page lies within my project, but in the link the method given is using html pages of some other domain. But thx for the reply
|
|
|
|
|
You would need to download the project and check out some of the samples to confirm, but i believe that you can easily create an xml document from just a string (i.e. read the contents of your file into a string) containing html.
|
|
|
|
|
Yes, I have tried downloading those files.But there is no option for adding files from working project, it requires other webpages with IP addrss.
|
|
|
|
|
Hi,
I am developing a Web application in ASP.NET 2.0 and having a "Signout" hyperlink on my top user control. When a logged user clicks on signout I simply clears all sessions and redirect user to my login page. The problem is that the user can still view the last page by using browser's back button. At this moment the page doesn't reload bcoz it is already in browser's cache. I just want to disable this back button (I know that this exactly is not possible) but alternatively I can clear browsers history and its cache. I already tried a lot of javascripts like window.history and all but of no use. Please correct where i am going wrong. An alternate solution is to close current browser and open a new fresh one with my homepage (so that back/forward buttons will be disabled initially) but I am unable to do this.
On Signout in codebehind I am doing this:
:-OSession.Clear();
Session.Abandon();
FormsAuthentication.SignOut();
Response.Expires = 0;
Response.Cache.SetNoStore();
Response.AppendHeader("Pragma", "no-cache");
Response.Redirect("Homepage.aspx");
I also tried this Javascript but of no use:
Session.Clear();
Session.Abandon();
FormsAuthentication.SignOut();
Response.Write("");
Response.Write("{");
Response.Write(" var Backlen=history.length;");
Response.Write(" history.go(-Backlen);");
Response.Write(" window.location.href='" + nextpage + "'; ");
Response.Write("}");
Response.Write("");
Thanks
Naresh
|
|
|
|
|
Hi All,
I am working on an application where I wants to display employee details in GridView. The image of the employee is stored in SQL Server 2005 table as image field . Now I wants to display the data along with the grid so how to display this can anybody help me with code.
Thanks
Regards
Sujit
|
|
|
|
|
Hi,
First save your image to Sql Server 2005[Database] in Byte Format.And then receive it as a Byte array format at server side. NOw you have to cast this image into Stream and then into write this Stream into another UserControl.
But I am suggesting you not to store Your Image into DataBase, store it into FileSystem.
Naresh Patel
|
|
|
|
|
Hello
Yes You are right.But This is requirement is like that we have to store 2 images in sql server database.I have stored image in database successfully.I am facing problem in showing this image in gridview.
Sujit
|
|
|
|
|
Hi Please wait i am giving you the code for it.
Naresh Patel
|
|
|
|
|
Hi, Please view the atricle for Displaying And Storing Image to Database at
http://www.codeproject.com/useritems/Image.asp
Naresh Patel
|
|
|
|
|
Hello
Yes yours code is good.i have already done this.only problem i am facing to displaying those images in grid view.i can easily show this in aspx page by retrieving image from sql server.
Sujit
|
|
|
|
|
Hey man.
We were having the same problem. Try do this. When you store it in the database...store the full url of where the picture can be found within your project.
For example...our image is stored inside a folder called "Properties" which is inside a folder called "Images"
So it finally worked when we saved it in the DB field as:
~\Images\Properties\officeblock1.jpg
Hope that helps
peace
Dazz
|
|
|
|
|
Yea
You are right.I am generally follow yours methods.That is quite good.but i have to store this in sql server.i am trying to do this.
Sujit
|
|
|
|
|
I want to send personal information to the CardInformation page
and then send total information ...
So, how transfer complete page data to the next page ..
Plz reply
Thanks
ajai
|
|
|
|
|
You mean you want to access the Controls of one page to another page with its last value?
Naresh Patel
|
|
|
|
|
Dear Frnd,
Just use the repose.redirect statement
check out following link
http://msdn2.microsoft.com/en-us/library/ms524309.aspx[^]
regards,
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
hi friends
how to authenticate connection string using asp.net 2.0
without write any encryption and decryption code in codebehind.
regards
saravanan
|
|
|
|
|
saravanan05 wrote: how to authenticate connection string using asp.net 2.0
What do you mean by authenticating connection string ? What is there to authenticate in connection string ?
|
|
|
|
|
i need to encrypt web config connection string without write any code in codebehind.
Is this possible
|
|
|
|
|
You will have to put some code in your codebehind - at least in a seperate page to handle the encryption. Put you connection string in as normal, and then call this code once from some temporary button on a page to protect it.
The code that uses the connection string wont know any different.
<br />
Public Sub EncryptConnStr<br />
'Open the web config<br />
Dim config As Configuration = ConfigurationManager.OpenWebConfiguration(Request.ApplicationPath)<br />
<br />
'Grab the section<br />
Dim section As ConfigurationSection = config.Sections("connectionStrings")<br />
<br />
'Specify the DPAPI provider<br />
section.SectionInformation.ProtectSection("DataProtectionConfigurationProvider")<br />
<br />
'Save the new config<br />
config.Save()<br />
End Sub<br />
|
|
|
|
|
i have date in string x=2007-08-24T00;00;00+5:30 Format.
I need in mm/dd/yyyy format in C#
plz help
CARE CAREER
|
|
|
|