|
You can start at the top here: How to get an answer to your question
3. Keep the subject line brief, but descriptive. eg "File Serialization problem"
only two letters away from being an asset
|
|
|
|
|
|
Hi
I have datagrid in asp.net. which contains two columns.And one button name is "save" on my form.
My first column is template column which is checkbox.
Now my Problem is:when i click on save button,I want to check at least one checkbox has to checked.
That's why i want javascript on my save button.How to write javascript for that?
I know hoe to call javascript but how to write means how to take checkbox in javascript?
Thanks
monika
|
|
|
|
|
This article serves your exact problem. http://www.codeproject.com/aspnet/DataGirdCheckBox.asp
Hope this will help you
Thomas
|
|
|
|
|
Hi
Thanks for yr help.
But i think u r not getting my exact problem.
I have datagrid which has first column as template column as checkbox.
Private Sub dg_diagnosis_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles dg_diagnosis.ItemCreated
If e.Item.ItemType = ListItemType.AlternatingItem Or e.Item.ItemType = ListItemType.Item Then
Dim chk As New HtmlInputCheckBox
chk.ID = "chk"
id = chk.ID
e.Item.Cells(0).Controls.Add(chk)
Me.img_save.Attributes.Add("OnClick", "CheckList1();")
End If
End Sub
can u say me how to use this checkbox in javascript?
Hope u getting my question.
Thnaks
monika
|
|
|
|
|
If you still need the solution I can post it.
|
|
|
|
|
|
I have a simple problem with master pages - please have a look:
http://home.icslab.agh.edu.pl/~martinez/asp 1.JPG[^]
The content placeholder is in the middle of the middle cell of my table. How to drag/resize it, so it would cover the whole middle cell? I don`t want my content pages to be limited to be so small.
Thank you very much for any help
|
|
|
|
|
What you are showing is a design view. How content placeholders are shown in the design view has nothing to do with how they are handled when the page executes. A content placeholder has no size, but it is given a size in the design view.
You can't resize the content place holder in the design view for the simple reason that it has no size.
---
b { font-weight: normal; }
|
|
|
|
|
Hi All I have a page in which there are two forms. One form is used to send values to another page. There is no Submit Button for first form. I m using a button of second form. How Can I submit the 1st Form when I click on the Button of Second Form.
|
|
|
|
|
do u mean u have a form and a pop up window?
Best Regards
3ala2
|
|
|
|
|
You can programmatically submit the first form using JavaScript.
document.forms[0].submit();
|
|
|
|
|
I m writing my Problem again my dear.
I have a page in which two forms are used. In the Second Form there is a button. I want to Submit the first Form when some one click on the Button of Second Form. There is no Submit Button in the first Form. How can I do this.
|
|
|
|
|
so create a javascript function, with the line of code given above and call that on click of the button on the 2nd form..
|
|
|
|
|
i have done my project now i have install it how to do in asp.net ,in my project no uploading only e mail sending that can be by by outlook express how to do it?
|
|
|
|
|
If I've understood you well you want to deploy ASP.NET application by e-mail. You can do it by "publishing" your web site (right click on project in VS and select publish) into a folder on file system (select "only files needed to run web application). Then ZIP all files in this folder and send it via e-mail.
web applications does not have singe exe file to deliver...
|
|
|
|
|
forget about those things i have created one project in asp.net now i want to install it on machine how to do it?
|
|
|
|
|
You can use 'Copy Web' of Visual Studio .NET to XCopy deploy it onto the destination webserver.
|
|
|
|
|
Hi All,
I have a page in which I have used two forms. One of these two forms is used to Send Data to other page, and the other form has a Button. I want to Submit the form when the Button is Clicked , How is that posible.
Thanks in Advance.
|
|
|
|
|
1- Session
You can use Session["name"]= variable;
In the other page put the session in lable or text.
Label1.Text=Session["user"].ToString();
2- QueryString
SqlCommand cmd=new SqlCommand("select id from Table where id="+dgi.Cells[12].Text,sqlConnection1);
|
|
|
|
|
Aloha,
We have a well functioning site map (breadcrumbs) in our asp.net application. Now some of the brass have decided that the root node should not be displayed, but how do we implement that?
A root node is required in the sitemap XML file, so we can't remove it there. We have a custom site map provider, but it's impossible to edit the parent nodes in there. Only the current child node can be edited.
Any ideas?
|
|
|
|
|
i want to mail welcome message when a user register in my web site.
i use the below code but it does'nt work.
it's give me this error : (The"SendUsing" configuration value is invalid.)
public static void Send(string mail,string sname,string sfamily)
{
MailMessage mailMsg = new MailMessage();
mailMsg .From = "info@mashhad915.com";
mailMsg .To =mail;
mailMsg .Subject = "Welcome!";
mailMsg .Body ="welcome";
mailMsg.Bcc="info@mashhad915.com";
mailMsg.Cc="info@mashhad915.com";
SmtpMail.SmtpServer.Insert(0,"127.0.0.1");
SmtpMail.Send(mailMsg );
}
please help me?
it's very important for me.
|
|
|
|
|
check ur smtp configuration, it might be not properly configured.
|
|
|
|
|
Use smtpserver out blank as below:
SmtpMail.SmtpServer="";
or
give ur smtp server according to ur smtp out as like below :
SmtpMail.SmtpServer="mail.a2z.com"
prabir
|
|
|
|
|
I had a similar problem a few weeks ago. It helped to set the smtp server to local host and not domain.com or mail.domain.com.
|
|
|
|