|
I just downgraded to IE6, and I still ahve the same problems. As for that caching problem, that's the exact problem that I am receiving. I was told that ie 7 is ready for ajax, but it doesn't seem that way. What I am trying to do is, I first call a server side script to update a database, then I call another script to read the changes and display them. This creates a problem, because IE is not realizing that there are changes, and it is not displaying the changes properly. An odd thing though is, if I grab the data after I do the insert statement, I get all the up-to-date data, but when I run my other select script, with the same code I might add, I don't get the updated results. I'm totally confused. I would use my update script, but then I'd have to insert a value into the table everytime. Not very database friendly.
|
|
|
|
|
Hey Fred, after you said caching, that gave me an idea, and a great one too. I fixed the problem by preventing ie from caching my asp pages. I attached this to the top of all my asp pages:
Response.Buffer=true
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
and now everything works perfectly. Thanks for the quick response and idea. You saved my butt.
|
|
|
|
|
Funny you should say that 'cos I just had the bright idea of doing this too..
..sometines all it takes is to get out of one's own head for a while..
cheers
F
|
|
|
|
|
How do I do the equvialent of "mailto:" in asp?
Thanks!
|
|
|
|
|
Do you mean in ASP.NET ?
Either way, how do you mean ? You can put HTML in your ASP.NET page ( all asp: tags get converted to HTML also, HTML is all your browser knows how to render ). If you want to send the mail yourself in code, there's a class ( whose exact name escapes me right now ) for this.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
u can use same < a href="mailto:................. with asp.net and asp or can use < aasp:Hyperlink NavigationUrl="mailto:.................>
|
|
|
|
|
hi all
i have a strange problem with caching
very simple cache test page with fallowing code is not cached at all(browser/server whatever):
<%@ Register TagPrefix="uc1" TagName="NewHomePageModule" Src="~/Home/Module/NewHomePageModule.ascx" %><br />
<%@ Page language="c#" %><br />
<%@ OutputCache Duration="60" VaryByParam="*" %><br />
test form<br />
<%=DateTime.Now%>
but when you remove this line :
<%@ Register TagPrefix="uc1" TagName="NewHomePageModule" Src="~/Home/Module/NewHomePageModule.ascx" %>
and i stay with :
<%@ Page language="c#" %><br />
<%@ OutputCache Duration="60" VaryByParam="*" %><br />
test form<br />
<%=DateTime.Now%>
the caching starting to work correctly
the stranger thing is that happening only on production box (IIS6/ASP.Net 1.1) and on dev box (IIS5/ASP.NET 1.1) code work properly in both cases
i gave here example as simple as posssible, actually the whole caching framework we developed is not working on production machine
please help anybody has an idea or direction to trouble-shoot this
Thanks much anyway for your attention
--------------------------------
From: Yevgeniy Kuznetsov
###
|
|
|
|
|
Hi all,
Can I use transactions in asp.if possible please provide any link.
Thanks
|
|
|
|
|
Transactions are part of your data layer, they have nothing to do with the presentation layer. Or, do you mean something else ?
Christian Graus - C++ MVP
|
|
|
|
|
I meant , I had to insert the data in the two tables using single form and it is necessary that the data goes to both the tables else rollback occurs
Now I need to know how i have to implement this thing in ASP.
Thanks
|
|
|
|
|
If you're using asp, and not ASP.NET, you should ask in the web dev forum.
In both cases, the answer is the same. Your middle tier will handle the DB call, and the nature of your presentation layer is irrelevant. The best way to do it is a single stored proc, which handles the transaction.
Christian Graus - C++ MVP
|
|
|
|
|
Thank You.
|
|
|
|
|
hi to all
i need to clear detail about debug and release
can anyone help me?
thanks
saravan
|
|
|
|
|
What do you need to know ? You should only deploy a release version, a debug version is compiled to provide things you need debugging, that shouldn't be in the release version.
Christian Graus - C++ MVP
|
|
|
|
|
I am using a GridView to display info from a DB as is normal.
But i am wanting to edit data in seperate form on same page. So i need to capture the value of the DataKeyNames field for later use.
How is possible to collect DataKeyNames value so can use elsewhere to populate this other form?
Help Please. Thank yous!
|
|
|
|
|
Hi ,
Im developing a tool and in the tool i need to convert the text/Html files to XML files....
I dont need any tools for the conversion.rather i need the code part to implement in the Tool which i develop..
Thanks in Advance
Arun
|
|
|
|
|
Well, how do you hope to convert them ? How would you convert this ?
<strong><bold>this is a heading<br></strong></bold>
ArunKumarParthiban wrote: i need the code part to implement in the Tool which i develop..
Doesn't that mean writing the tool for you ?
Christian Graus - C++ MVP
|
|
|
|
|
it doesnt mean that i need someone to write the tool for me..it means is there any other option to convert text files to XML format from code behind
|
|
|
|
|
Hi.
Does anyone has some experience with Encryption? I need to encrypt password user submits and store it in the database. And of course I need to decrypt it back and compare to user password when user signs in.
I created a test page and use System.Security.Cryptography.RijndaelManaged. On that page I encrypted string (passwrod) but not sure what to do next. I get Byte() back. How do I store it in the database? But most important how do I decrypt it back? When running encrypt and decrypt on the same page one after another and useing the same key it works with not problem. But if use decrypt separetely it throws me error.
Here's the error I get:
PKCS7 padding is invalid and cannot be removed.
My guess it has something to do with Key and/or IV. Does that mean I need to save Key as well? I'm lost.
Please help.
Thanks,
-- modified at 9:27 Thursday 23rd November, 2006
|
|
|
|
|
I got another solution
You must to create a new class sheet (name.CS)
Add these libraries
using System.Security.Cryptography;
using System.Text;
using System.IO;
using System.Xml;
I made these functions based in a codeproject encrypt solution
<br />
public string EncryptProcess(string password)<br />
{<br />
string passwordEncryted = Encrypt(password, "&%#@?,:*");<br />
return (passwordEncryted);<br />
}<br />
<br />
private static String Encrypt(String strText, String strEncrKey)<br />
{<br />
byte[] bKey = new byte[8];<br />
byte[] IV = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF };<br />
<br />
try<br />
{<br />
bKey = System.Text.Encoding.UTF8.GetBytes(strEncrKey.Substring(0, 8));<br />
DESCryptoServiceProvider des = new DESCryptoServiceProvider();<br />
Byte[] inputByteArray = Encoding.UTF8.GetBytes(strText);<br />
MemoryStream ms = new MemoryStream();<br />
CryptoStream cs = new CryptoStream(ms, des.CreateEncryptor(bKey, IV), CryptoStreamMode.Write);<br />
cs.Write(inputByteArray, 0, inputByteArray.Length);<br />
cs.FlushFinalBlock();<br />
return Convert.ToBase64String(ms.ToArray());<br />
<br />
}<br />
catch (Exception ex)<br />
{<br />
return ex.Message;<br />
}<br />
}<br />
<br />
You must to invoice the first process
Ex: string pass = EncryptProcess("SGC"); //Uppercase
the answer is the string "2zhZqCYvfJc="
This is the Encrypt process, write me if works for you..
And i will write the Decrypt process
keep Learning and you never will be out of date...
|
|
|
|
|
Thanks a lot. I will try. I do believe I've seen something similar online.
Do you had any experience with System.Security.Cryptography.RijndaelManaged?
Thank you.
|
|
|
|
|
nop
keep Learning and you never will be out of date...
|
|
|
|
|
Thanks anyway. I found some answeres and will try to create different ways of doing it.
|
|
|
|
|
How to Handling Drag event in asp.net controls
please give some idea related this issue
Thanks in advance
by
RPL
r_palanivel83 10:01 4 Jan '06
|
|
|
|