|
I want to catch event when i click back button in WebBroswer.
how can i do?
hi
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
|
|
The primary langauge of this site is English. Please edit and translate your post.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
The primary langauge of this site is something resembling English some of the time
FTFY
|
|
|
|
|
|
1- Please use English language when you post on these forums.
2- Noone has any idea about what is your problem. Thus guessing a solution is pretty impossible. Please read the guidelines of these forums on How to get an answer to your question.
|
|
|
|
|
The english translation of my subject is "a mistake in its response".
Apparently, the author has created a new posting where he meant to reply to an existing message.
We are all here to help.
Todos estamos aquí para ayudar
|
|
|
|
|
OP has used Spanish as a language to ask a question.
[Spanish]
Por lo que se encontró una solución?
¿Estás bromeando aquí
[/Spanish]
[English]
For what you found a solution ?
Are you kidding here
[/English]
Please Use English as a primary language in this forum.
Regards,
Hiren.
"We owe a lot to the Indians, who taught us how to count, without which no worthwhile scientific discovery could have been made." - Einstein
Microsoft Dynamics CRM
|
|
|
|
|
I have a method in a separate class which returns a string. This string actually has a HTML in it (Head, body, etc). I am retreiving this string in one of the method in my code behind and I want this html to merge into the current existing HTML and ASP.Net (.aspx file) and display the contents on the returned string (HTML) in the current page creating a new div or some other good method. If some one has any idea related to this, please help. Ask for any further information in case you need to get a clear understanding.
Thanks
Anil
|
|
|
|
|
Also posted in QnA section
|
|
|
|
|
Use an asp:Literal control.
|
|
|
|
|
Hi
you should use litral control when you want to a string witch has html content even it has img tag but pay attention if your string has html content it works if that string has a/some asp.nettag like <asp:image> it dowsnt work
strind str = "..."; // a string with just html tag
litral1.text = str;
just this
bye
|
|
|
|
|
Please don't cross post. This is really bad form.
|
|
|
|
|
Sorry I am using this first time, I didn't know that.
|
|
|
|
|
hi guys
i have a website that in button execute some methods and with this code
response.write("alert(\"messge\") ");
and then
response.redirect("a.aspx");
now alert do not display
whats problem ?
thanks a lot
|
|
|
|
|
If I understand, when a user click on the button. In the event you have:
void btnTest_Click(object sender, EventArgs e)
{
Response.Write("<Script>alert('messge') </Script>");
Response.Redirect("page2");
}
in this case, the redirection is make and the page with the button cannot display the alert.
For resolve you problem try:
<script language="javascript">
function onButtonClick()
{
alert("message");
document.location = "http://www.google.fr";
}
</script>
<asp:Button ID="btnTest" runat="server" OnClientClick="javascript:onButtonClick()" />
If you have some thing to execute in the event, you can make this
void btnTest_Click(object sender, EventArgs e)
{
Response.Write(@"<Script> alert('message');
document.location = 'http://www.google.fr'; </Script>");
}
modified on Tuesday, November 30, 2010 8:04 AM
|
|
|
|
|
If you're doing a Response.Redirect("someUrl"). The redirect will be done on the server side.
That means you're transfering control to the execution of page a.aspx. The former writing of
that script tag is hereby irrelevant.
Cheers
Manfred
|
|
|
|
|
|
Who voted 5 for this unreadable garbage?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi,
In my Asp.net WebApplication When Im Running A Select Query Im Getting A Error Like This:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
I Tried A lot Of Ways For Solving This Problem..But No One worked.
Thanks In Advance,
Vishnu
|
|
|
|
|
vishnukamath wrote: I Tried A lot Of Ways For Solving This Problem.
Have you tried
cmd.CommandTimeout = 10000;
|
|
|
|
|
thanks for replying Me Sir,
Im Using The Select Query to Get the data in to datatable by using dataadapter. when im debugging and when the cursor came to adapter.fill(datatable). it is going into the catch and the error is comming like:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
thanks in advance,
vishnu
|
|
|
|
|
vishnukamath wrote: Im Using The Select Query to Get the data in to datatable
Post the code you are using
|
|
|
|
|
Is the table very large, or are there a bunch of joins in the query?
Are the tables being referenced properly indexed. If they aren't, doing so could substantially increase the performance of the query.
I wasn't, now I am, then I won't be anymore.
|
|
|
|