|
hi,
i am new to .net environment.Currently i am developing a webform that consist of several textboxes. we are using a sql server 2000 database.
now i want to add data in the respective table using textboxes.
i.e when the user enter the data into the textboxes and click the "add" button at that time the data enter into the textboxes should enter into that particular table in sql server 2000 database in the backend.(and it should not be hardcoded)
please tell me how to do that that by giving me some example or some link through which i can get some idea.
thanks and regards.
pranav
Pranav Dave
|
|
|
|
|
Here[^] you can get that.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
I have a custom validaton control and javascript code which
is having a single function for checking out more than one validation.
Now what the scenario is I have to revert the messages back from the Javascript function to errormessage property of custom validator control based on the condition satisfied in the javascript function. I have not used much of JavaScript u can say a beginner.
If anybody has any solution or you require more inputs then please feel free to write me your valuable response.
Thanks
Regards,
Varun Arora
|
|
|
|
|
Here an example, I hope it will help you
function
ClientValidation (source,arguments)
{
var
ctl1=document.getElementById('ctl00_ContentPlaceHolder1_MyField1).value;
var ctl2=document.getElementById('ctl00_ContentPlaceHolder1_MyField2').value;
var
vld=document.getElementById('ctl00_ContentPlaceHolder1_MyValidation');
if
(ctl1=="" || ctl2=="")
{
vld.errormessage='MyNewMessage'; //important: errormessage must be in lower case
arguments.IsValid = false;
}
}
Eric H.
|
|
|
|
|
hello i have a datagird in one page and i want to bind this datagrid from another page, meanwhile i want to access this control in another page.
how can i do it,
any suggestion Plz
-- modified at 4:14 Thursday 16th November, 2006
Dotnet
|
|
|
|
|
Hello,
I am begginner but I think that you can try to use findcontrol method of the page until that an expert will answer you.
Eric H.
|
|
|
|
|
did you success, if yes please post your code
Eric H.
|
|
|
|
|
hi
hope following code helps to u.but tht is findcontrol into MasterPage.master and u can change tht according to ur need..... the controls name r same on both pages.
<br />
System.Web.UI.WebControls.Label lblUsername;<br />
System.Web.UI.WebControls.LinkButton signout;<br />
signout = (System.Web.UI.WebControls.LinkButton)Master.FindControl("signout");<br />
lblUsername = (System.Web.UI.WebControls.Label)Master.FindControl("lblUsername");<br />
<br />
<br />
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
This great, but I need the contrary thing:
I have a textbox control on Page1.aspx and I need to use it from my Master Page.
Is it possible?
Thanx
-- modified at 1:05 Friday 17th November, 2006
Eric H.
|
|
|
|
|
This is the solution
Dim content As ContentPlaceHolder
content = Page.Master.FindControl("ContentPlaceHolder1")
Dim Mytextbox As TextBox
Mytextbox = content.FindControl("TextBox1")
Mytextbox.visible=false 'for example
Eric H.
|
|
|
|
|
I had validation on the client(work only in IE) and sever side(for firefox and Opera).
I m doing the following test:
1) I enter data on the UI and do not fill a request field intentionally so the validator will appear and then click on submit button.
2) I insert in the required field a value and click again on submit button.
In this case I get the called URL webform.
3)I click on internet back button and in only firefox browser and Opera browser, I get that the errormessage validation is still there, the * for required field still appear too. In IE, it is OK.
Someone know this phenomenon.
Thanx
Eric H.
|
|
|
|
|
put your Button code in
if(IsValid)
{
//Your Code (For C#)
}
if(IsValid) then
'Your Code (For VB)
End if
Hope This may help you
Dotnet
|
|
|
|
|
I already done this but the IsValid return true so It doen't help
Thanx
Eric H.
|
|
|
|
|
it will return true then what's the problem, u want to say that ur validation is not working in firfox am i correct then this is the solution as i think. try to do it
it may help u.
if i'm getting u wrong then let me know?
Dotnet
|
|
|
|
|
Sorry, let's me explain again.
When I press on Internet Borwser the Back button (in Firefox and Opera) I get the UI page and the validators are still showing me that there are errors on page, they are still showing me the errormessages but there is no more errors. I would like this page to be "refreshed" when I clicking on back button. In IE there is no problem.
I hope you understand me
-- modified at 8:17 Thursday 16th November, 2006
-- modified at 8:18 Thursday 16th November, 2006
Eric H.
|
|
|
|
|
Hi All,
In My ASP .NET (VB .NET As code behind) Appliacation. I've populated the table and I bind a checkbox in the first column of the grid.
User can select the rows which he/she wants.. I need the checked and uncheked rows seperately..
Can any one please help me in that issue..
Thanks in advance..
|
|
|
|
|
You have to go through DataGrid.Items collection and check manualy if your check box is chcecked or not.
foreach (DataGridItem item in DataGrid.Items)<br />
{<br />
if (((CheckBox)item.Cells[checkBoxColumnIndex].Controls[checkBoxControlIndex]).Checked)<br />
{<br />
}<br />
else<br />
{<br />
}<br />
}
Pilo
|
|
|
|
|
Hi,
I have done a project which is runing fine in the local machine , but after deployement to the website it is showning runtime error in customerror tag of web.config.
In customErrors tag i have written
customErrors mode="RemoteOnly" defaultRedirect="Errorpage.aspx"
Please help me to solve the problem
Thanks & Regards
Mishra
|
|
|
|
|
Please do change in Web.config file
customErrors mode="Off"
Enjoy....
Pavan Pareta
|
|
|
|
|
hi
change ur customeError mode="Off"
After that u can see error of ur application
Pathan
|
|
|
|
|
Hi,
I have done it but still it is showing the same error.
Thanks & Regards
Mishra
|
|
|
|
|
Hi
Do u create virtual directory for ur application from ur domain site?
Also u have to change WebConfig setting there.
Pathan
|
|
|
|
|
hi,
can you please tell me how can i create a virtual directory in my domain site.
Thanks & Regards
Mishra
|
|
|
|
|
Hi Ballita.
go ur domain site there will be many options,choose web directory.there will be folder of Add New virtual directory and preference.
u can change ur webconfig setting from preference
Pathan
|
|
|
|
|
Hi,
Is your error page available in wwwroot folder or insidfe some other folder if yes then use
customErrors mode="RemoteOnly" defaultRedirect="../myfolder/Errorpage.aspx"
If it's won't work I will send u working web.config file
|
|
|
|