|
Sounds like your design is broken. For a start, a static variable is obviously going to be the same for all your pages, and in fact, I'd have expected it to be the same for all users, have you tested with two lots of users running at once in different rooms ? It sounds to me like your code has a lot of issues stemming from poor design.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
okay... so can i solve my probelm by passing roomid from page1 to page2 using session/querystring/cookies ?
$@N@
|
|
|
|
|
Thanksalot!
i have solved my problem by passing roomid btw pages through response.redirect().
Allah bless u all!
tc
regards,
Sana
$@N@
|
|
|
|
|
Hi ,
I have drag the Menu control from the navigation tool and change its color to my css match.Now the Main menu tabs changes its color and font But sub menu dosen't support evenafter used <levelsubmenustyles>
Thanks all,Your Help will be appreciated
|
|
|
|
|
Hi.
I've to develope a web messageBox. It should be server side with 2 states:
- OK button
- Yes/No button
If an instance of this class creates and the Show() method be called, I should show a message box and wait for user action and I get back the button that clicked to the callers method.
Could you please give me some guides how can I develope this class and how would you have started this?
Best wishes
|
|
|
|
|
http://www.getafreelancer.com/[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
|
mehrdadc48 wrote: t should be server side with 2 states:
'it should be server side' ? What does that mean, and how is it possible for a piece of client UI to be 'server side' ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi All,
I have one input box in my html form, i want to put condition on it so that it will take only numerical values and whenever user enters a numerical value in it, it should format it in currency format automatically.
Please help me by advicing any CSS class or any XSL property.
Any help will be very much thankfull.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
|
indian143 wrote: want to put condition on it so that it will take only numerical values
Call a javascript function on the onblur event of the input box which will validate the input string. You can check if the entered string is a number or not like this[^]
Next step would be to convert it into the currency format. As I remeber from your last post, this currency thing was culture specific, rite?
Here, what you can do is that pass a regular expression based on culture and convert the string on its mask base.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
<convert the string on its mask base>
Can u please provide me any help for this any small code nippet or any links.
And the above problem is solved. I am concerntrating on this problem only.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
Hi all,
iam using Memberhip API and login controls for user login and authentication.
by default asp.net 2.0 uses sql server Provider am i right?
now how i change this for MS Access data Provider ?
or how i configure this by defalult server for security
any article to point this issue
Best Regards
|
|
|
|
|
I would recommand this[^] article to read.
Be careful, there is no Undo Button(Ctrl+Z) in life.
|
|
|
|
|
How about not using access and converting your DB to SQL Express then your troubles dissapear
|
|
|
|
|
Thanks for the reply ,
actually i read that Membership API by default uses the Access DB and it creates automatically inside App_Data Folder .
but some articles defined that the by default is using sql server DB .
kindly clear me in these ideas .
I also Downloaded the video from asp.net site and it is also defining the Access Database by default.
Best regards
|
|
|
|
|
Hi there,
I am trying to insert some data into a database table and am getting an error which says
"String or binary data would be truncated. The statement has been terminated. "
What is the problem here pls help.
The error is at the ExecuteNonQuery Line 2nd last line.
Dim insertCommand As SqlCommand<br />
Dim strConnection As String = "Data Source=cccc;Initial Catalog=Bccc;Integrated Security=True"<br />
Dim objConnection As New SqlConnection(strConnection)<br />
Dim strRate As String = "INSERT INTO tblTable(FkPId,RateType) VALUES (@PId,@Rate)"<br />
insertCommand = New SqlCommand(strRate, objConnection) <br />
objConnection.Open()<br />
<br />
insertCommand.Parameters.AddWithValue("@PId", ddlRooms.SelectedValue)<br />
insertCommand.Parameters.AddWithValue("@Rate", ddlRate.SelectedValue)<br />
<br />
insertCommand.ExecuteNonQuery()<br />
objConnection.Close()<br />
allphpro
|
|
|
|
|
the error means the size of rate (probably a text field) is to big. Like putting a 10 char string in a 5 char field. Could you be trying to put a rate into ratetype by mistake.
For what it is worth, I would use a stored proc.
I didn't get any requirements for the signature
|
|
|
|
|
Thanks ToddHileHoffer.
Right on the spot.
allphpro
|
|
|
|
|
I'm converting my web site from PHP to ASP.Net, and on the page as it exists now, I limit the size of the content to the height of the browser window (beyond a reasonable minimum of course) with the following html:
<body onresize="RefreshPage();">
However, when I try the same thing in my ASP.Net version, it's ignored (and the IDE warns me that onresize isn't valid when using XHTML). I'm using a master page. The things I've tried were applied to the master page (it seemed to be the place to put the code), but I can't seem to get things to work out like I want them.
How should I go about doing this?
[edit] I have to wait until I get home from work, but I think I found my problem.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Did you try removing the DOCTYPE declaration from the page?
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I don't want to do that.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Have you tried the pages registerstartupscript or registerclientscriptblock?
I didn't get any requirements for the signature
|
|
|
|
|
Yeah (RegisterStartupScript), that didn't appear to work. I put it in the Page_Load method in the codebehind for the master page. The code is at home, and I'm at work, so I can't copy/paste it right now to show you.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I'm an idiot. I think I may have found the problem.
It seems the code depends on the name of the content DIV, and I renamed that DIV in the .Net version.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|