|
apply the required validator to the one textbox where the search text is entered and make sure it is not applied to all textboxes, if that doesn work, post your code so we can see what is happening
|
|
|
|
|
Dear sir I am newer to WCSF but going to implement it. To run Quickstart of WSCF
from help file i have to edit-
Run the SetUpDatabase.cmd script in the RI1\Scripts folder.
i edited for sql server but couldn't connect due to user problem
Any body's help is highly appreciated.
Evil Inside
|
|
|
|
|
hello friends,
I have downloaded few templates from the msdn2 web site and installed it
now when i create a website choosing the downloaded one as a template its
giving error files not found( images database files )
Is that i am missing something or my procedure is wrong ..
Please tell me how to solve this problem
Thank u
Regards
Dot_Net Dude
*** Why EXPERTS behave like a fool ***
|
|
|
|
|
have you downloaded these image database files or are they available only to the msdn web site?
|
|
|
|
|
when i downloaded the file i got a .vsi file which doesnt consists of the database and pics....and that link doesnt give the database files and pics ....and to check for the availability please look into the microsoft database server
*** Why EXPERTS behave like a fool ***
|
|
|
|
|
Hello Friends,
For changing password I'm displaying a div in which i'm showing UserName, OldPassword, New Password, Retype Your Password and a update but as i click on the "Update" button it changes the password and hide the div as well. But i want the div should not be disappeared
modified on Friday, February 29, 2008 6:39 AM
|
|
|
|
|
can you post your code please
|
|
|
|
|
e is the code to display and disappear the div block
function showDiv(divID)
{
e=document.getElementById(divID);
if(e.style.display=="none")
{
e.style.display="block";
}
else
{
e.style.display="none";
}
}
========================================================
<div id="divChangePassword" style="border:solid 1px black; width:400px;top:125px;left:450px;position:absolute;display:none; background-color:#efefef;">
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
<tr>
<td colspan="2" align="right" class="manojHeaderStrip1">
Update Your Password
<a href="#" click="showDiv('divChangePassword');" title="Close" style="text-align:right;color:Red;color:White;font-size:8.5pt;">[Close]</a>
</td>
</tr>
<tr>
<td colspan="2" height="10">
</td>
</tr>
<tr>
<td style="width: 50%" class="manojTDRight">
User Name</td>
<td style="width: 100px">
<asp:TextBox ID="txtUserName" runat="server" CssClass="manojTextBox1" ReadOnly="True"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 50%" class="manojTDRight">
Old Password</td>
<td style="width: 100px">
<asp:TextBox ID="txtOldPassword" runat="server" CssClass="manojTextBox1"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 50%" class="manojTDRight">
New Password</td>
<td style="width: 100px">
<asp:TextBox ID="txtNewPassword" runat="server" CssClass="manojTextBox1"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 50%" class="manojTDRight">
Retype New Password</td>
<td style="width: 100px">
<asp:TextBox ID="txtNewPassword1" runat="server" CssClass="manojTextBox1"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 50%" height="10">
</td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 50%" class="manojTDRight">
<input type="submit" id="cmdSubmit" value="Submit" runat="server" onserverclick="cmdSubmit_ServerClick" />
</td>
<td style="width: 100px" class="manojTDLeft">
<input type="reset" id="cmdReset" />
</td>
</tr>
<tr>
<td class="manojTDRight" height="10" style="width: 50%">
</td>
<td class="manojTDLeft" style="width: 100px">
</td>
</tr>
<tr>
<td class="manojTDRight" colspan="2" height="10">
<asp:Label ID="lblMsg1" runat="server"></asp:Label></td>
</tr>
</table>
</div>
As i click on the submit button then it disappear the div block
and also there is some code for updating the information is on the submit button
|
|
|
|
|
I cant really see what is happening
have you got the code that does : cmdSubmit_ServerClick?
|
|
|
|
|
is my code working a bit if yes plz let me know wht is tht...............
|
|
|
|
|
The Knowledge wrote: As i click on the submit button then it disappear the div block
Of course the div will "disappear", you told it to.
<div id="divChangePassword" style="border:solid 1px black; width:400px;top:125px;left:450px;position:absolute;display:none; background-color:#efefef;">
To execute the server code a postback must occur, when the page is sent back to the browser it is displayed as you have asked it to
only two letters away from being an asset
|
|
|
|
|
|
If you need this explained, you need to read the book again. It is a very simple basic web development concept.
only two letters away from being an asset
|
|
|
|
|
Hi
I have the following
int inttimenow = Convert.ToInt32(dttimenow.ToShortTimeString());
int intstarttime = Convert.ToInt32(readerdate);
Imagine inttimenow was = 12.00
and
intstarttme was = 12.05
How would I write a calulation which shows how long is left to the starttime
e.g
instarttime - inttimenow = 5 minutes
thanks
|
|
|
|
|
You dont have to take this long route for this.insted try this
TimeSpan span = readerdate.Subtract(DateTime.Now);
Nnow you can use
span.Minutes To find out the difference between the two times in minutes.
How this helps
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Hi
it shows the error:
string does contain a definition for subtract
the readerdate is a string value displaying a value from a database
does this change thigs now?
thanks
|
|
|
|
|
Oh ya..If it is string then u need to change it in to datetime formate like this
DateTime.Parse(readerdate).Subtract(DateTime.Now);
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
legend
TimeSpan span = DateTime.Parse(readerdate).Subtract(DateTime.Now);
string timeleft = span.Minutes.ToString();
cheers
|
|
|
|
|
Hi
stuck again!
Ive got this
DateTime dtaddedtime = DateTime.Now.AddMinutes(5);
TimeSpan span = dtaddedtime.Subtract(DateTime.Parse(readerdate));
Now imagine dtaddedtime = 11.30 + 5 mins which is 11.35
span = 11.35 - 11.30(readerdate)
but its showing a negative number and instead of showing 5 its showing -6??
any help wud be great
thanks
|
|
|
|
|
sorted my mistake with my logic on what i was doing, nothing wrong with the code
|
|
|
|
|
Please give some example to work out.
Thanx
Gopinath.R
|
|
|
|
|
www.csharphelp.com/archives2/archive441.html
www.securitypronews.com/it/applicationdevelopment/spn-19-20030602CurrencyConverterServerwithC.html
thought i would answer before somen wise guy give you a google link
|
|
|
|
|
This s my gmail id - vingomail@gmail.com
Happy coding
Cheers
Gopinath.R
|
|
|
|
|
Why did you put your email address? This forum is for ASP.NET questions.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
I m extremely sorry friend.
Gopinath.R
|
|
|
|