|
At the server side, you simply check on the Request.Form["__EVENTTARGET"] entry to see which object causes the postback, for example if you click the div 1 then the value should be "div1". In addition, you might think about building a custom div control with a custom event, say Click, and you can easily determine which div causing the postback using the sender object of the Click event handler.
|
|
|
|
|
|
Hello I have a gridview and one field is "stock" this field has edititemtemplate and this has a regularexpression validator, I need information how custumize this. I need controller that the user only used number and not letters.
My level is very poor, please any solution easy.
Thaks very much.
|
|
|
|
|
Try and write your Validation code in the onValidating event of cell such that if it doesnt validates, cancel (e.cancel=true) the effect so that cursor remains within the same cell.
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|
|
Ok Thanks very much but I find other solution more easy, I used the comparevalidation object and put in type "double" this solution is simple and perfect, now only permited number and dot.
This information I found in this foro. Thanks.
My little problem is that I not understand the format of custom validation expression and I not find information about this.
Thanks very much.
|
|
|
|
|
gonmor wrote: My little problem is that I not understand the format of custom validation expression and I not find information about this.
It's not that hard, just give the Expresso[^] a try with the 30 mins tutotial[^].
|
|
|
|
|
ur problem is not clear still hv a look if this cn help u
1. create EditItemTemplate
2. put a txt box named "Stock" or whtever
3. put a <asp:regularexpression> there and put ValidationExpression="^\d+$" it will allow only numbers.
|
|
|
|
|
Oh thanks very much is a good program, I am sure that I will give good use him.
|
|
|
|
|
i am interested to work on website which have facility to send message on email address and also this message send on a mobile no, whats are the additional software which i have to install. i am interested to develop ASP.NET using C# thanks.
|
|
|
|
|
Hi there:
You might take a look at this article ...Send SMS
Hope you get the idea...
<< >>
|
|
|
|
|
in my project if i refresh any page then home page will be coming what i have to do for current page
|
|
|
|
|
Make sure that the link in the address bar points to your current page. If you have done something like a Server.Transfer to get to the current page, then the link will show the old value.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
May be you are using iframe in your pages, which is having the Home page set as default page. just check it out.
Srini
|
|
|
|
|
Hi all,
Could someone plz help ... I'm using ASP in dreamweaver 8 (not vb), I'm trying to split the var aList, but I'm getting the following errers:
aList -> 1,2,3 // Example of how the variable would look like.
Microsoft JScript runtime error '800a138f'
Object expected
logonAcces.asp, line 36
33 var listArray;
34 var aList = rs.Fields.Item("ACTIONLIST").Value;
35 Response.Write("aList -> "+aList);
36 listArray = split(aList,",");
37 Response.Write("listArray -> "+listArray);
Thank you in advance....
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
function splitActionList(arrayList)
{
var r_act_list = new String;
r_act_list = arrayList.split(",");
return r_act_list;
}
<br />
<br />
<div class="ForumSig">The only programmers that are better than C programmers are those who code in 1's and 0's..... :) <br />
<br />
:) Programm3r</div>
|
|
|
|
|
hi all,
In my project I am using a javascript menu.When ever I place mouse on
the menu it displying the menu items. While displaying menu items if the
aspx pages contains list boxes or drop down list boxes, items of menu
displaying behind the boxes. where as for text boxes items displaying on the
boxes only.
This problem is only for IE. If I run the same aspx pages in Opera
I am not facing any problem. What is worng while diplaying the Menu items.
thanx in advance.
your
peter
|
|
|
|
|
The problem comes from the way that IE renders the listboxes - they do not really work with things like z-index. A workaround is to 'shim' an iframe underneath the div tags that you are rendering to form the menu. See here[^] for details.
|
|
|
|
|
give me a description about database connectivity through classes and webconfig in detail seprately with example
|
|
|
|
|
Hi there:
There are a lot stuffs related to this out there...here is just one from CP ...DB Connection
<< >>
|
|
|
|
|
Hi , to every one
I have two GridView in One page , I need to copy record(row) from GridView1 to GridView2 when customer select that row
My question how we can create new record (row ) in GridView2 and fill data at run time ?
thank a lot
|
|
|
|
|
You need to create that new row in the datasource for that grid and then rebind the grid.
|
|
|
|
|
how to increase the speed of image using adrotator in asp.net web application project.
|
|
|
|
|
What do you mean by "the speed of image"? Do you mean the speed to change the displayed ad image? Normally, it is changed whenever the page refreshes, so you might use a timer (or your own script) to refresh the page (or better the adrotator control only).
|
|
|
|
|
Hi,
I would like to access Bound field value when selecting any row in grideview.
Any help is appreciated
Regards,
Rajesh
rajesh
|
|
|
|
|
You simply access the Text property of a particular cell for the bound field.
|
|
|
|