|
Vri SSK wrote: It is not a good practice to call the Javascript function in the codebehind file.
How is it even possible to call JS in the code behind ?
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 )
|
|
|
|
|
How to use authentication in web.config without type all username and password within <credentails> tag?
I don't need this...
<br />
<br />
...<br />
< credentials ><br />
< user name="AAA" password="BBB" ><br />
...<br />
< /credentials ><br />
...<br />
<br />
Because of i have MySql database which stored username and password.
For LogIn.aspx code like this
protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{
if (CheckAuthenticate(Login1.UserName, Login1.Password))
{
e.Authenticated = true;
Response.Redirect("index.aspx");
}
else
{
e.Authenticated = false;
}
}
...
public bool CheckAuthenticate(string user, string pass)
{
}
I've google it to find some tutorial but it's not help.
How to do this?
thank =)
-- modified at 4:37 Tuesday 16th October, 2007
|
|
|
|
|
I have following things in my web project
1. A web user control which contains a drop downlist.
2. A web-form that contains a drop-downlist and the web contol above mentioned.
3. Two tables - One is master and other is child.
I am populating the the dropdownlist which is lying in the web-user control with the master table data.
Now my question is , How can i populate the dropdownlist , which is lying in the web-form from the dropdownlist , which is lying the web-user control , on the selected index changed function of the drop-downlist lying in the web-user control.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
By subscribing to the selection changed event in the main form which contains the user control. Or by using a delegate to let the main form know that selection has changed in the control.
However, if they are tied together to that degree, odds are the control is poorly designed.
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 )
|
|
|
|
|
can u give me a example of using the delegates in this context?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
At what point do you intend to learn to use google, or to buy a book ?
The control itself defines an event, so the easiest thing ( although not the nicest ) is to expose the control publically. There's no point using a get accessor, it's a reference, once someone can get the control, they can change it's properties. Then hook up the selectonchanged event in the main form.
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 think in your application the meaning of user control is changed
why you have created a user control if there are so much dependencies on that control. I think it should not be a user control
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Yes, I agree.
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 )
|
|
|
|
|
Exactly,well said Sandeep.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hi,
I have the following wizard control that I am not getting to work:
<asp:Wizard
ID="wizInsertAddress"
CancelDestinationPageUrl="Default.aspx"
DisplaySideBar="false"
NavigationStyle-HorizontalAlign="Left"
Width="100%"
runat="server"
OnFinishButtonClick="wizInsertAddress_FinishButtonClick">
<StartNavigationTemplate>
<asp:Panel ID="pnlStartNavigation" Style="padding:0px" Runat="Server">
<asp:Button ID="btnStartNext" Text="Insert" CommandName="MoveNext" runat="server" />
<asp:Button ID="btnCancel" Text="Cancel" Runat="Server"/>
</asp:Panel>
</StartNavigationTemplate>
<WizardSteps>
<asp:WizardStep ID="wizStep1" Title="Start" StepType="Start" Runat="Server">
...here I have input controls...
</asp:WizardStep>
<asp:WizardStep id="wizStep2" Title="Complete" StepType="Complete" Runat="Server">
<asp:Literal ID="litSuccessMsg" runat="server" />
<div class="verticalSpacer10"></div>
<ul class="actionlist">
<li><asp:HyperLink ID="hlUserDetails" runat="server" /></li>
<li><a href="Default.aspx">Users Home</a></li>
</ul>
</asp:WizardStep>
</WizardSteps>
</asp:Wizard>
Basically the first step is to capture address details, and then when the Insert button is clicked it goes to step 2 and displays a success message. Now in my wizInsertAddress_FinishButtonClick I do a simple Response.Write("in wizInsertAddress_FinishButtonClick"); to see if the method is fired. But it is not!!
Please can someone explain why??
Thanks
|
|
|
|
|
Have you set a breakpoint to see if it's fired ?
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 All,
I trying to freeze my html table from last 2-3 days but was not able to get the exact output. I realise that when I change
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
to
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
it worked properly.
Any idea???
Thanks in advance...
|
|
|
|
|
So you resolved that issue Gre8
No but i think it specify the version of html you are using
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Ya finally I could manage to solve that problem.
Thanks ....
|
|
|
|
|
Do you know it ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Means do you know Virtusa ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
i want to convert the user selected text to bold in the textbox he typed
|
|
|
|
|
Might be u will have to use javascript...
|
|
|
|
|
DocumentTypes---------------->Parent Node
.....Welcome
.......welcome1.PDF
.......Welcome2.PDF
....Contact
--------Contact1.pdf
---------Contact2.pdf
Now I want that, When I click on welcome1.PDF ; then I should receive this value to display on a label.
I want the same , when i click on Contact2.PDF, also its value(i.e. Contact2.PDF) should display on the Label control.
Please help me, its urgent.
With Regards
Tapan
|
|
|
|
|
U can use
oNodes1 = New TreeNode
oNodes1.Text = "Ur Text"
oNodes1.NavigateUrl = "URL where label is there"
oNodes1.Target = "If u r using frame then put the frame name"
oNodes.ChildNodes.Add(oNodes1)
Hope it helps u???
|
|
|
|
|
Hi Friend,
i want to put input validator.it allow to input only numaric value...
wait for reply
,thanking you...
Impact Pro
|
|
|
|
|
/^[0-9\s]*$/ this regular expression will allow only numeric value
|
|
|
|
|
thanks for reply,
i want complate script...
if you have ,then send me plz,
Impact Pro
|
|
|
|
|
Here is my control, what it does is that it doesn't require a numeric value, but if one is entered, it cannot be longer than 10 numeric characters. No spaces are allowed. Please modify to your needs:
<asp:RegularExpressionValidator
ID="RegularExpressionValidator_PostalCode"
ControlToValidate="txtPostalCode"
Display="Dynamic"
ErrorMessage="Optional: Invalid postal code"
ValidationExpression="\d{1,10}$"
runat="server">Optional: Invalid postal code
</asp:RegularExpressionValidator>
I hope this helps.
Regards
|
|
|
|
|
Hi,
I am using AJAX in my appl using VS 2005. In one of the checkboxlist, set of values are binded and one of the value is <b>"<n.a.> -"</b>
When I select that particular item, I got the error as:
<b>Sys.WebForms.PageRequestManagerServerErrorException: an unknow error occured while processing the request on the server. the status code returned from the server was: 500</b>
What is the cause of the error? Is this problem using AJAX? What is remedy for this problem? Can anyone help me?
Thankfully,
jm
|
|
|
|