|
Imran Khan Pathan wrote: but popup window is not open.If I remove update panle then it works fine.
I guess registering client script blocks inside an update panel is not allowed. Create a dummy project with update panel, and try registering a client side script which alerts some thing ?
|
|
|
|
|
hi
I have2 question
1:I have a setup file of my website and I want to test it in localhost befor loading it,how can I do it?
2:I have a QueryString in web.config.when I want to load thesite on internet how shoud I change yhe address?
what should I write instead the name of computer?
|
|
|
|
|
M.V wrote: 1:I have a setup file of my website and I want to test it in localhost befor loading it,how can I do it?
If you have the setup file then it's very straightforward just double click on the .msi file and the wizard will take you through the Installation process.
M.V wrote: QueryString in web.config
What do you mean by this?
Query String is something related to URL, Not web.config file.
Regards - J O H N -
|
|
|
|
|
ohh sorry I mistyped.I meaned connectionstring
it works true when I test it in my local.I want to khnow
<connectionstrings>
<add name="connectionstring" connectionstring="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|projDb.mdf;Integrated Security=True;User Instance=True"
="" providername="System.Data.SqlClient">
for loading it on internet what change should I do?
thanks alot
-- modified at 12:55 Tuesday 6th November, 2007
|
|
|
|
|
Hello every body,
I am using sessions in my web-based application. After completion of all transactions i want to sign out. When i click sign out and copy the URL and paste it in browser. It is showing the contents of signed-in page.
Even I have used "Session.RemoveAll();" in global.asax file when the session ends
But If i click refresh and paste the URL it will not allow to show the contents of signed-in page.
How to refresh page only one time when i click sign-out.
Kindly send me the code...
Can any body plz..help me...
|
|
|
|
|
Use
Session.Abandon();
Response.Redirect("LoginPage.aspx?action=SessionExpired", true);
And on LoginPage.aspx check whether action=SessionExpired if so then redirect to the page which u want or just say window.close();
Hope it helps u??
|
|
|
|
|
Your problem has got nothing to do with the page refresh. Once after signing out if you are still able to access the secured pages then this is due to the Client-side caching enabled. you are viewing the cached page. If you want to disable it then you can write this on the code-behind. so that after the sign-out if you happen to click refresh button or back button, it should probably take you to the login page.
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Regards - J O H N -
|
|
|
|
|
Thank you JoHn... Its Working...
|
|
|
|
|
srajasekhar wrote: Thank you JoHn... Its Working...
You are most Welcome.
Regards - J O H N -
|
|
|
|
|
Try ajax in ur project it may rectify that problem.
|
|
|
|
|
I read somewhere that I can use the footer to add a new record to the data table.
Can You plz give me some code to do just that.
BiG RaLpH
|
|
|
|
|
|
Big Ralph wrote: Can You plz give me some code to do just that.
As of now there are total 100 articles related to Gridview at the below given link.
Do you know?[^]
Regards - J O H N -
|
|
|
|
|
I want to ask regading regular expression.
I want to use such regular expression which only allow integers and
float value.
for example :--
12
12.34
23.456
0.5
0.0
0
I found but not able to find. Please Help me . Suggest me the regular
expression for that
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
What is wrong with you ?
1 - the easiest way to do what you want is to parse the values on the keypress event
2 - failing that, I have given you a regex that iwll work in all these cases. I've explained what you need to to to impliment it. Why would anyone bother, after the lengthy thread that exists below to try to explain a simple regex to you, get back on the treadmill and go through it all with you again ? May as well just bang our head against a well as try that.
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 )
|
|
|
|
|
Don't know why you marked your reply with the joke icon. It's all for real. Even the banging part.
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
Instead of having regular expression I did something like this:
I wrote a javascript function:
function onlyDigits(e)
{
var retKey = true;
var IsTwoDecimal = e.value.indexOf(".");
if (window.event.keyCode < 46 || window.event.keyCode > 57 || window.event.keyCode == 47)
{
window.event.keyCode = 0;
retKey = false;
}
else
{
//This code is used to restrict two decimal cost e.g.= 23.55 is valid
//but cost=45.55.66. is not valid.
if (IsTwoDecimal !=-1)
{
var s=e.value.split(".");
if (window.event.keyCode==46 || s[1].length>=2)
{
window.event.keyCode = 0;
retKey = false;
}
}
}
return (retKey);
}
<input id="txtCost" runat="server" type="text" onkeypress="return onlyDigits(this);" />
Hope this helps u???
|
|
|
|
|
I told her from the start this was a better way to do it, but she would not listen.
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 )
|
|
|
|
|
Try this
it is solve your question
[-+]?[0-9]*\.?[0-9]*
|
|
|
|
|
why it is validating 8u also.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Can't understand what u mean??
This Expression is well working for only integer and Float also.
|
|
|
|
|
It means she is stupid. I gave her roughly the same regex, and explained the need to put ^ and $ to make it validate the whole string, but instead she just asked the same question again.
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 )
|
|
|
|
|
Christian Graus wrote:
It means she is stupid.
Christian Graus wrote: but instead she just asked the same question again.
And you answer her questions over and over again. You either have the patience of a saint, extremely bored or there is a clause in your contract which states you must attempt to help the stupid. I don't think there is a Sonia post on this forum without a reply from you. You're responses make reading her posts worth it!! And now Jamie has started as well.... She is impervious to it all - it's all wonderful stuff to read!
|
|
|
|
|
Gupta,
Are you doing some self-teaching? Or are you employed? If the latter, may I know which company that might be?
|
|
|
|
|
Hi All,
I am creating editable dropdownlist by taking textbox and dropdownlist. But my problem is that I want textbox to appear in front of dropdownlist but its not working.
Can anyone help me??
|
|
|
|