|
Please refer ADO.net articles. You can get many when you search Google.
Thanks
|
|
|
|
|
The textbox entry should fire the OnTextChanged event, MText_Textchanged.
Now, I dont want to fire this for all entry. When I change textbox entry to particular strings like 'georgia','atlanta','florida'(jus examples) the MText_Textchanged should be fired.
Actually, when the textbox entry is changed, I need to do some checkbox disable on the page. So, for textbox I have to keep the AutoPostback = "true".
So, every time I change the textbox entry, the page postsback. I want the page postback and the textbox change event to occur only for specific strings.
Please help.
Thanks
|
|
|
|
|
You should probably never use the OnTextChanged event. Very bad UI performance. It looks like what you really need is some javascript. There are lots of examples out there on how to write javascript. I think you want a keypress event on the textbox then in the javascript check to see when the textbox = your text and then the checkbox gets disabled.
Ben
|
|
|
|
|
Thanks for the reply. I have started on the javascript.
Thanks
|
|
|
|
|
Does anyone know how I can create a Silver scrollbar on
my javascript scrollbar. Should look like WindowsXP Silver scrollbars.
My scrollbar, which is a custom control, looks something like this (on "View Source"):
div id="idx_pch_trLr" style="overflow: scroll;; overflow-x: hidden;
overflow-y: auto;width:160px;white-space: nowrap"
My javascript(on "View Source"):
script language="javascript">
function idx_pch_trLr_ss()
{
var l = document.getElementById("idx_pch_trLr");l.scrollLeft=0;l.scrollTop=0;l.onscroll = idx_pch_trLr_rs;
}
function idx_pch_trLr_rs()
{
var l = document.getElementById("idx_pch_trLr");
var inpX = document.getElementById("idx_pch_trLr_x");
var inpY = document.getElementById("idx_pch_trLr_y");
inpX.value = l.scrollLeft;inpY.value = l.scrollTop;
}
function idx_pch_trLr_rz()
{
var l = document.getElementById("idx_pch_trLr");
l.style.height = document.body.offsetHeight - 191;
}
attachEvent("onload",idx_pch_trLr_ss);attachEvent("onresize",idx_pch_trLr_rz);idx_pch_trLr_rz()
|
|
|
|
|
I've written a page that allows a user to look up a page of info from a DB. Nothing too ground breaking there.
Now i want to allow the user to email a URL including a querystring specifying which page he was looking at.
The querystring contains a massive __ViewState parameter which I can't get rid of.
I've set enableviewstate and enableSession state to false in the Page tag and I've set the enableviewstate attribute to false in all the controls i could find that had it set to true but I still haven't got rid of it.
My application is going to be entirely stateless so i'm happy to just pass an occassional piece of data from one page to another.
Does anyone know how to turn off viewstateentirely? Is there a config setting?
Thanks
Russell
|
|
|
|
|
I am pretty sure the only time viewstate ends up in the query string is when you go cookieless in your webconfig. So if you change your site to allow cookies then the viewstate should get out of your query string.
Note even when you turn off viewstate, there is still some viewstate info in the page.
Anyway, that is my best guess.
Ben
|
|
|
|
|
try to use the page directive EnableViewState="false" . It should disable the viewstate for the entire page!
Just Relax And Keep It Simple.
|
|
|
|
|
I,also, assumed that would turn it off for everything on the page but it didn't seem to.
Russell
|
|
|
|
|
In my Project Employee Id is in the form ABC123... I have to increment one by one while registering....Send Code
Thanks in Advance
|
|
|
|
|
Kasi Viswanathan wrote: Send Code
You must be joking.
If the ID is not purely numeric, you need to parse out the numeric portion, increment it, and put it back.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Or use Base36 calculation and just add 1 unless the first three chars require to be 'ABC'.
Anyway....
Please vote my message! Click on one of the numbers beside ' Rate this message'.
.: I love it when a plan comes together :.
http://www.zonderpunt.nl
|
|
|
|
|
Tanx for ur suggession...
|
|
|
|
|
But this is not a joke...Tanx for ur Suggession.
|
|
|
|
|
I looked at some of your previous posts and you keep demanding we send you the code. This site is for people who want to learn.
__________________________
Don't drink and derive.
Alcohol and calculus don't mix.
|
|
|
|
|
leckey wrote: looked at some of your previous posts and you keep demanding we send you the code.
Even if he was polite and said "Please" , I still wouldn't give out any serious code
"Try asking what you want to know, rather than asking a question whose answer you know." - Christian Graus
|
|
|
|
|
Empty Vessels Makes More Noise...
|
|
|
|
|
This site is for people to learn and not to comment others....
|
|
|
|
|
Kasi,
If you dont understand. People in forum here help each other.
This is no way of asking it.
Try to be more nice.
Cheers
Menon
|
|
|
|
|
Sure i will try my level best in future...Tanx
|
|
|
|
|
Howdy.
First ever message... wow.
I've written an ASP .NET 2.0 application (C#, code-behind model) which uses a master page for the elements common to most of the application. When I'm in one of my subordinate pages and switch to design view, though I just get the master page content greyed out, with none of my subordinate page's controls or content being rendered.
This means that I've had to code the applcation without the benefit of design view, although it does seem to work for my user controls when viewed in isolation.
What could be causing this? I'm sure it's something really, really simple.
"What the <%#%>?"
|
|
|
|
|
Hello ,
I have a master page which has site menu. The menu is made up of DIV tag.
I want to hide the menu from an ASPX page.
I am not able to make a reference of the DIV tag present in master page on ASPX page. could some one help?
Pavas
|
|
|
|
|
mpavas wrote: am not able to make a reference of the DIV tag present in master page on ASPX page.
You have to create a public method in master page which hides the div. Assume your master page is named "Master1", then the following code will access the public method of master page from a content page.
Master1 master = (Master1)this.Master;
master.PublicMethod();
|
|
|
|
|
Some of our customers make changes to their website using Contribute. Contribute can make changes to html pages but cannot make changes to an asp .net page. Is there a product, or a way, that and end user can use to make changes to an asp .net page?
|
|
|
|
|
Do you really want that ? An ASPX is far more complex and easy to break than a HTML page.
It's just a text file, you can expose it any way you like.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|