|
i was trying to validate the textbox in javascript.
can i do these things there?Please explain.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Yes you can use regular expressions in javascript
|
|
|
|
|
navaneeth can u explain the meaning of this line
var NumericRegExp = "/^\d+$/";
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
u past this /^\d+$/ in to validation expression property then see what happen
Piyush Vardhan Singh
|
|
|
|
|
The web is bursting to the seams with examples of how to limit what text can be entered into a textbox using javascript.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I was working on localhost.
Every thing is working fine. Some software made changes to registery.
Now i am getting following error when i am accessing my ASP pages with database.
I am using ASP, and msAccess for backEnd.
---------------------------------------------------------------------------
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xc6c Thread 0xda8 DBC 0x1380064 Jet'.
---------------------------------------------------------------------------
Please tell me how to solve the problem
Kiran Sajanikar
Software Engineer
CleverBIT softwares.
Pune.
|
|
|
|
|
Kiran S. S. wrote: ---------------------------------------------------------------------------
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xc6c Thread 0xda8 DBC 0x1380064 Jet'.
---------------------------------------------------------------------------
You can check this and this.. or you can google for more information "Temporary (volatile) Jet DSN for process "
|
|
|
|
|
hello
i want if condition.
my code===
protected void btnSearch_Click1(object sender, EventArgs e)
{
string strDropdown = drpdwnAnalystName.SelectedItem.Text;
string strSecurityCode = txtSecurityCode.Text;
string strFromDate = dtpFrom.Text;
int flag = 0;
if (flag == 0)
{
funSearchSecurityCode();
}
if (drpdwnAnalystName.SelectedItem.Value == strDropdown)
{
funSearchAnalyst();
}
if (dtpFrom.Text == strFromDate)
{
funSearchFromDate();
}
funStyle();
funClear();
}
this code haven't error.but record is not display.
when i write only fist two if condition that time code is worked.record is display.
but when i take one more if condition that time record is not display.
so pls give me a write code.
Gayatri
Gayatri
|
|
|
|
|
Use nested if condition and check which condition is satisfied.
if(Statement)
{
......
}
else if(Statement)
{
.......
}
else
{
.......
}
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Imran Khan Pathan wrote: Use nested if condition and check which condition is satisfied.
This is not nested if statements. Nested if is
if(condition)
{
if(condition)
{
if(condition)
{
}
}
}
|
|
|
|
|
Acutally they are nested.
if (condition) {
...
} else if (condition) {
...
} else {
...
}
is really:
if (condition) {
...
} else {
if (condition) {
...
} else {
...
}
}
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Cool, I forgot that point. Good thinking
|
|
|
|
|
I would like to know.
Are you using these three conditions seprately or as a single statement.
Please check whether you have used any kind of filters on record sets. Which may one of the cause. Try remove remove filters before using next filters. Which will provied you full datasets.
Kiran Sajanikar
|
|
|
|
|
niki_nilu wrote: funClear();
Function name say's that it clears something, may be data. So is this making problem ? Try commenting that line
|
|
|
|
|
this is my code---
protected void btnSearch_Click1(object sender, EventArgs e)
{
string strDropdown = drpdwnAnalystName.SelectedItem.Text;
string strSecurityCode = txtSecurityCode.Text;
string strFromDate = dtpFrom.Text;
if (drpdwnAnalystName.SelectedItem.Value == strDropdown && txtSecurityCode.Text == "" && dtpFrom.Text == "")
{
funSearchAnalyst();
}
if (txtSecurityCode.Text == strSecurityCode && drpdwnAnalystName.SelectedItem.Value == "" && dtpFrom.Text == "")
{
funSearchSecurityCode();
}
if (dtpFrom.Text == strFromDate && txtSecurityCode.Text == "" && drpdwnAnalystName.SelectedItem.Value == "")
{
funSearchFromDate();
}
funStyle();
funClear(); txtSecurityCode.Text = "";
drpdwnAnalystName.SelectedItem.Text = "";
}
fist if case only run. in second if cursor is not go to inside if condition.
it is directly go to 3 rd if condition there also not go to inside
if condition.
what wrong in this code
Gayatri
|
|
|
|
|
iam new to gridview so i did paging and i taken 5 rows for one page when i click next button it was going to next page when update the data was not updating and it was updating only the first page data only.
kirankumar
|
|
|
|
|
can you post your code?
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
have u bind ur grid view on next button click event
|
|
|
|
|
Hi friends
I am working on ImageEditor Application.
I need to get hexacode of that image color on mouseover event in textbox.
like as color picker.
thanks in advance
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Imran Khan Pathan wrote: I need to get hexacode of that image color on mouseover event in textbox.
I don't think that it is possible. A color picker works with hard coded hexa values. Corresponding values for the colors will be hard coded in an array and used when it is clicked. But getting the color of the mouse pointed area looks impossible to me using javascript.
|
|
|
|
|
Hi Guys,
i am using a "session" after the user is login in the page.The user is pressed (Ctrl + N) or goto File and open an new window after login , i want to remove the session in the opened window and redirect to login page. how can we remove the session,once the new window(same page) is loaded.
d.sengottuvelu
|
|
|
|
|
Usually it is controlled by browser, so we won't be able to change it.
|
|
|
|
|
Hi All,
I need to display Textbox on Combo, I mean I have to overlap the controls in ASP.NET. can any one tell me how to do this??
Thanks in advance...
|
|
|
|
|
ASP.NET 2.0 wrote: I need to display Textbox on Combo
Strange, have you tried using CSS positioning ? VS editor allows you to drag and place the controls wherever required, is it ?
|
|
|
|
|
Let me try, I have not tried this... Thanks for the reply...
|
|
|
|