|
Use public website method in VS 2k5
<< >>
|
|
|
|
|
Hai to all,
can anyone halp me for which site is good to get faq's of asp.net for 1+yrs experience.
can any one send me some material otherwise.
I wanna attend interviews as 1+.
kissy
|
|
|
|
|
if given ur mail id i could send few docs!!
Gautham
|
|
|
|
|
Hello friends ...
good morning..
I want to use make client side validation on a button using javascript such as textbox is empty or not. After that I want to put textbox value into database using server side code using c#.
Is it possible? I am using html controls making them runat= server
How?
|
|
|
|
|
u can use RegularExpressionValidator or RequiredFieldValidator and set ControlToValidate property to your control such as textbox
We Can Do Anything, If We Want It
|
|
|
|
|
Ok ..But is it possible that both client side script on onclick (for validation ) will run first and then server side code (for database entry) will run .
|
|
|
|
|
no problem.
u can validate the control with many validators
We Can Do Anything, If We Want It
|
|
|
|
|
|
iamdking wrote: both client side script on onclick (for validation ) will run first and then server side code (for database entry) will run .
why do u want to validate twice.. try using the EnableCLientScript Propert of the validator by setting it false for Server side validation.. and settin it true for client side.. create 2 such validators.
iamdking wrote: for database entry)
supposedly 5 was the size, and 6 chars are entered, a exception will be generated, which can be caught and aptly handled.. but y wud u need this.. simply set the texbox maxlength to 5.
Kunal
|
|
|
|
|
Is it possible to convert a .WAV file to a .MP3 file using .NET?
Does anybody know of a resource site with a tutorial or sample code?
Thanks,
rajmani
|
|
|
|
|
Yes. Hope this This[^]will help you.
Regards,
Satips.
|
|
|
|
|
hi all
I have page main contain a iframe
On the page main have treeview and i use Ajax
tag UpdatePanel contain tree view but it not contain iframe
when i click event SelectedNodeChanged on tree view i want ReLoad iframe
On the function i try javacript but it not run
protected void treeview_SelectedNodeChanged(object sender, EventArgs e)
{
string strScript = "";
strScript += " window.parent.frames['ifmap'].ReLoad();";
//OR parent.frames['ifmap'].ReLoad();
strScript += "";
Page.RegisterStartupScript("ClientScript", strScript);
}
this is ReLoad() in iframe. it will postback to server with event LinkButton1
function ReLoad() {
__doPostBack('LinkButton1','');
}
How can i Reload or refresh my iframe on above function by any ways ?????
so when i use ajax and tag <asp:updatepanel id="UpdatePanel1" runat="server">
Any function javacript into not run. if i reject this tag so function javacript run good. ????
1. How can i refresh or reload iframe so use ajax. ?????
2. How do i run any function javacript into tag <asp:updatepanel id="UpdatePanel1" runat="server"> ?????
|
|
|
|
|
|
sorry i am very pressing ;P
|
|
|
|
|
One post is enough here.
Regards,
Satips.
|
|
|
|
|
Hello
you can use this method:
LinkButton1.OnClientClick = "javascript:window.parent.frames['ifmap'].document.location = URL;return false;";
or
LinkButton1.OnClientClick = "javascript:window.parent.frames['ifmap'].document.location = window.parent.frames['ifmap'].document.location;return false;";
We Can Do Anything, If We Want It
|
|
|
|
|
thanks but it tree view it haven't onclick or onclientclick ?????
|
|
|
|
|
u can use NavigateUrl for each treenode such as Tree1.Nodes[0].NavigateUrl = "javascript:yourfunction();return false;";
We Can Do Anything, If We Want It
|
|
|
|
|
|
i have created visual studio 2005 web application and i want to host it on apache server.
what configuration i need to do?
|
|
|
|
|
Windows Server and IIS;P
only two letters away from being an asset
|
|
|
|
|
should i put the whole project in the wwwroot.
but if i want to use apache server.
|
|
|
|
|
Hi All
I have problem regarding WebCustom Control
I am trying to develop a generic WebCustomControl for searching purpose.
What i am trying to do is to pass UI Controls such as labels textboxes etc from the hosting page to the webcustom control. I have a method in WebCustomControl Class that add these control to the Control Collection of the WebCustomControl.
The logic of the method is
public void AddControls(Controls[] UIControls)
{
foreach (Control control in UIControls)
{
this.Controls.Add(control );
}
}
The Method is called from the Hosting Page as
TextBox txt1 = new TextBox();
txt1.ID = "txtname";
Control[] c ={ txt1};
search.AddControls(c);
I creat a control array and store my textbox in it i then pass the array to the method of webcustom control.
Now the problem is that when render method of the control is called the control collection of webcutomcontrol lost its value. the logic of RenderContents is as
protected override void RenderContents(HtmlTextWriter output)
{
foreach (Control control in UIControls)
{
control .RenderControl(output);
}
}
This is fairly simple but i don't know where the problem is
Any assistance will be appreciated
Regards
Faiq shah Afridi
|
|
|
|
|
i know how to make a data grid, but i would like to add a place to enter a variable, or multiple variables (like date ranges or an individual customer)
how can i make it so?
ASP.NET 2.0 SQL Server 2005
thanks
|
|
|
|
|
what you mean by variable? are your trying to enter some text/date if so use templatefield and the text boxes in that templatefield..
-----
|
|
|
|