|
i have some numeric type value in the textbox.when i show the textbox value in the add watch , it shows the value in the double quotes.now the problem is how can i find out - if the textbox contains some numeric value - whether the textbox contans numeic value or not.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
On the client, or the server ? You can do it on the server using regex. I believe javascript also has regex support, but I'm not familiar with it.
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 )
|
|
|
|
|
presently i am debugging my program
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
try this
int numeicVal;
if(int.TryParse(value),out numeicVal)
{
}
else
{
}
bEST rEGARD
pATHAN
please don't forget to vote on the post that helped you.
|
|
|
|
|
ThanQ
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
can i display the message box in the function under a particular condition?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: can i display the message box in the function under a particular condition?
an alert box ? Try
Page.RegisterClientScript("name","JSFun");
|
|
|
|
|
hi,
you can use javascript functions to display the message box..
regards
|
|
|
|
|
Of course. If the condition is on the server, write the script to show the box only if the condition is met. Doing this all in javascript, should be self evident.
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 )
|
|
|
|
|
Hi There,
Can someone suggest me some good Rating Tool for .net 2.0
Is it possible to make one?
If there are already such Free Tool.
I found one here on our site, but its compatiable with .net 1.0 only.
Or last option if i have to buy then, can you please suggest me a good one?
Thanks
Cheers
Menon
|
|
|
|
|
mady1380 wrote: Can someone suggest me some good Rating Tool for .net 2.0
AJAX toolkit comes up with a good rating tool. Check that
|
|
|
|
|
visit http://asp.net/ajax/control-toolkit/live/Default.aspx
it is very useful for rating
regards
|
|
|
|
|
Thanks alot Friends
Ajax has i believe almost everything that is need, and yes it works perfectly,
Once again. Thanks to you guys
Cheers
Menon
|
|
|
|
|
Hi all,
Any help on how can i control session time out?
thanks
|
|
|
|
|
Control in what way ? Sessions do time out, why would you want them not to ?
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 )
|
|
|
|
|
I need to alert the user that the session will time out?
|
|
|
|
|
You can have a JavaScript function to keep ticking and in the case of timer getting elapsed, you can alert the user.
|
|
|
|
|
You could try to do that, but it's not going to work 100% of the time, because it will be disconnected from the session itself. I mean, if your session exists, and you run a timer on the client, if the page loads in 5 seconds, your timer is 5 seconds behind.
Why is this a problem ? What's the nature of the app that you expect people to leave it for long periods and expect it to work ? What if your page just reloads itself after a certain period ?
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 )
|
|
|
|
|
samerh wrote: I need to alert the user that the session will time out?
Recently I have read the same thing in one CP article. Have you searched for that here. If I remember correctly, it was done using an IFRAME and setting the refresh header to a value less than session timeout value. This IFRAME page will refresh before session is going to timeout, and you can easily notify the user regarding the session timeout, or you can stop the session from timing out by increasing the timeout value.
|
|
|
|
|
I am working on a data entry web application that users can use in different countries and some times where they are using the application they may be distracted for an hour, half an hour or may be more... So, i need to make sure when they return to enter the data they collected that the session is still alive through a msg for example or may be refreshing after x minutes. BY the way what did u mean by CP article? Could u plz give em the link to those articles?
Thanks in advance
|
|
|
|
|
can i put the serial no in the gridview , i mean if it containes 10 records , then the first column should be of serial number starting from 1 to 10.and one more thing if i delete the record in between these records the there should not exist random serial order, example if i delete one record out of 10 then the counting should be from 1 - 9.Hope i have made u understand . i don;t want the database interaction to do this job.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
hi sonia,
i think you can do this in 2 ways .
1st : you can use dataset object and inside that you can datatable object then get the reference of that particular datatable and programmatically add column in to that datatable and set that column's propert autoicnrement to true.
2nd : you can use a Itemdatabound event of your data grid.
steps for this is
1. take page level int type varibale name it as u like.
2.on page load store this variable in viewstate with value 0;
3.now as datagrid's itemdatabound get called for each row you can increment that variable and store it in the the datagrid column.
|
|
|
|
|
Take one Label Control In ItemTemplate.
Now In code behind side,
Find label control OnRowDatabound Event and bind it with rowIndex of gridview
i.e
((Label)e.Row.FindControl("lblId")).Text=e.Row.RowIndex.ToString();
bEST rEGARD
pATHAN
please don't forget to vote on the post that helped you.
|
|
|
|
|
ThanQ
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Create a template column and do something like
<asp:TemplateField HeaderText="SlNo">
<ItemTemplate>
<%# Container.DataItemIndex + 1 %>
</ItemTemplate>
</asp:TemplateField>
Hope this helps
|
|
|
|