|
Let's say I have a 100 items in the repeater, and I want to divide them to 5 pages with 20 items each...
|
|
|
|
|
I had the following defined on an .ASPX file:
<asp:Button ID="btnOK" Text="OK" width="75" CausesValidation="False"
UseSubmitBehavior="False" runat="server" OnClick="OnClickOK"/>
and the following code in the .CS file
public void OnClickOK(object sender, EventArgs e)
{
Response.Redirect(m_sReferringPage);
}
When I clicked the OK button on the form, the page completely ignored the OnClickOK function. (!!!???)
After messing around with it for about an hour, I figured I'd change the button's ID to see if it would fix the problem, and changed it to the following:
<asp:Button ID="<big><font color="red">btnOK2</font></big>" Text="OK" width="75" CausesValidation="False"
UseSubmitBehavior="False" runat="server" OnClick="OnClickOK"/>
IT WORKED! This is a very simple form in a table that only has one other button (that already worked as intended). It looks like a control ID conflict, but I'll be damned if I know where it's coming from.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
removed="OnClickOK" ??? Is OnClick a swear word and CP removed it ?
The compiler will tell you if two controls are conflicting.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: removed="OnClickOK" ??? Is OnClick a swear word and CP removed it ?
Hmmm, that's weird, ain't it...
Christian Graus wrote: The compiler will tell you if two controls are conflicting.
Compiles and runs fine - no warnings, no errors. There are only two controls on the form - btnCancel and btnOK.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Christian Graus wrote: removed="OnClickOK" ??? Is OnClick a swear word and CP removed it ?
That is due to the backwards way that CP handles security. As they allow any html code in the posts (which mostly causes problems anyway), they have to filter out anything that they can think of as harmful.
They should have done it the other way around, by html-encoding everything and only turn a few allowed codes into formatting. As people often post html code and want it shown as is, the formatting codes shouldn't use html syntax anyway.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
I wanted to clear the contents of controls(textboxes) in my web page when user hits a button. i googled a little , but didn't got any usefull link. will anybody give some idea/ examples for this. I am using vb as server side scripting tool.
thanks in advance
Sebastian
|
|
|
|
|
Wouldn't <input type="reset"> do the trick?
|
|
|
|
|
This only resets the values to the ones returned at the last postback.
CleAkO
|
|
|
|
|
Hi andyharman,
Thanks, But this will not give the proper result. i am looking for a sever side scripting. would you help on that...!
Sebastian
|
|
|
|
|
A quick solution would be to just redirect to the same page and if there are any values you need to save then put them into a session variable temporarily.
CleAkO
|
|
|
|
|
yeah.. this might solve the problem. Thank you..!
Sebastian
|
|
|
|
|
The above explained all post are wrong for this task.
use javascript to clear the textboxes
for(i=0; i < document.forms[0].length; i++)
if (document.forms[0][i].type == "text")
if (document.forms[0][i].disabled != true)
document.forms[0][i].value='';
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
Score it if you like my post
|
|
|
|
|
hi
i am trying to do the audio and video streaming on server using asp.net 2.0 but not able to do anything can anybody help plz as i am also not able to find any code or help on internet also.
HArry
|
|
|
|
|
this link will help you
http://www.codeproject.com/audio/[^]
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
Score it if you like my post
|
|
|
|
|
i m using ftb with in my website but i hav no idea how to change its tool bar colors any suggestions
|
|
|
|
|
HI
Can you please tell What is free Text Box ?
<l>Thanks and Regards
Sandeep
|
|
|
|
|
its a free tool that u can integrate in ur site by addings its dll to ur project
|
|
|
|
|
Never work with it ?
<l>Thanks and Regards
Sandeep
|
|
|
|
|
how to get right click menu on tree view event in asp .net2.2?????
Piyush Vardhan Singh
Programmer
TAS NewDelhi
9313077379
|
|
|
|
|
Dears
I’m using query string to pass variable between pages but the value of this variables is readable in address bar of browser , is their any way to encrypt it without change my code i.e. some configuration in IIS or install third party program
Thanks for cooperation and support
|
|
|
|
|
Ya its very simple
write a code for Encryption which will Encrpt your values before going to next page , add encrypted values to your query string then in next page get the values decrypt it and get the values
<l>Thanks and Regards
Sandeep
|
|
|
|
|
Dear Sandeep
thanks for your responce but i have to change my code
and Encryption & decryption will impact the performance or not?
actuly im looking some thing in IIS wihout Encryption & decryption or changing me code.....
thanks
|
|
|
|
|
|
Hi All,
I want to validate textbox for date i-e "dd/MM/yyyy" format in Javascript. If Date is not in that format a alert should apear saying "invalid Cahracter". Only "Digits" and "/" should be allowed. I want to use javascript. Any help for that.
Thanks in Advance.
|
|
|
|
|
HI
You can use custom validator or Regular Expression Validator for it
<l>Thanks and Regards
Sandeep
|
|
|
|