|
Set the CausesValidation Property of the LinkButton to false.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
|
I am getting the following error when am adding a table in my page.
Validation(XHTML 1.0 Transitional): Attribute 'height' is not a valid attribute of element 'table'
Validation(XHTML 1.0 Transitional): Attribute 'width' is not a valid attribute of element 'tr'
Validation(XHTML 1.0 Transitional): Attribute 'height' is not a valid attribute of element 'tr'
My Code as follows.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminLogin.aspx.cs" Inherits="Admin_AdminLogin" %>
<%----%>
<title>Test
I commended the second line eventhough still getting these errors.
|
|
|
|
|
Is this actually preventing you from compiling the site? These are XHTML validation errors that simply mean that the XHTML 1.0 Transitional specification doesn't recognize those attributes as valid for that element. It shouldn't prevent you from being able to compile and run the site.
|
|
|
|
|
Hi,
I have one gridview control with two hidden fields and one dropdownlist.
AutoPostback property of dropdownlist is true.
Now , when selected_index_changed event of dropdownlist fire, that time i want to
know that at which row index dropdownlist is.
kiranbanker
|
|
|
|
|
I have one gridview control with two hidden fields and one dropdownlist.
AutoPostback property of dropdownlist is true.
You can use Item template for inserting a dropdownlist in the datagrid .
<Columns>
<asp:TemplateColumn HeaderText="Action">
<ItemTemplate>
<asp:DropDownList id="DDAction" runat="server" Visible="False" OnSelectedIndexChanged="DropDown_SelectedIndexChanged"
AutoPostBack="True"></asp:DropDownList>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
Now , when selected_index_changed event of dropdownlist fire, that time i want to
know that at which row index dropdownlist is.
Now in the code behind write the following code.
protected void DropDown_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList list = (DropDownList)sender;
if(list.SelectedItem.Text==".......";
.....
//To get the corresponding row
TableCell cell = list.Parent as TableCell;// getting the parent cell of dropdown
DataGridItem item = cell.Parent as DataGridItem;//getting the parent of tablecell ie the row
string p_key=item.Cells[2].Text.Trim();//getting the column values of the row
........
Tickle your brain and the ideas are out
|
|
|
|
|
Hi
I have a problem. i am downloading image from server the problem is that
image get downloaded but when i open it then it is not displayed.
(Preview is not available). Why the image dose not get displayed.
my code is as follow.
<br />
dim iname as string=Request.QueryString("name")<br />
Dim imgname As String = "C:\Inetpub\wwwroot\dotnetupload\image\" & iname<br />
'Dim fname As String = "2_002.jpg"<br />
Dim contentType As String = "image/jpeg"<br />
Dim file As System.IO.FileInfo = New System.IO.FileInfo(imgname)<br />
'Response.AddHeader("Content-Disposition", "multipart/form-data; filename=" & file.Name)<br />
Response.AddHeader("Content-Disposition", "attachment; filename=" & file.Name)<br />
Response.AddHeader("Content-Length", file.Length.ToString())<br />
Response.ContentType = contentType<br />
Response.Write(file.FullName)<br />
Response.End()<br />
<br />
Please help me to solve the problem.
Thanks.
Rahul
People Laugh on me Because i am Different but
i Laugh on them Because they all are same.
|
|
|
|
|
Response.WriteFile(file.FullName)
|
|
|
|
|
i have to insert a value into the table, but before inserting into the database i wanted to check whether that entry exist there or not.
for that i am using two seperate qieries.
can i do this job in a single stored procedure?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Of course. you can use if statements in a stored proc.
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 provide any link . if u have ?
ThankQ
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
if not exists (select * from mytable where mycolumn = @myvalue)
begin
insert into mytable values (@myvalue)
end
something like that.
I also googled ( do you ever do this ? ) and this was the first hit:
http://www.databasejournal.com/features/mssql/article.php/3087431[^]
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 )
|
|
|
|
|
Hai all,
i had two drop down lists ,in that
1st drop downlist-Countries
2nd drop downlist-ststes
if i select one country from ddlcountries,then the second ddlstates will be filled with States from the database.
pls,help me with sample code
Thanks
Subbu.
|
|
|
|
|
Impossible, without knowing the structure of your database. Presumably it would take the selected item from the first list and pass it into a database call to get the relevant second list.
The book 'AJAX in Action' has an excellent sample which can be used to do this with AJAX. It's a prime candidate IMO for a place where AJAX adds a lot of value.
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 )
|
|
|
|
|
Dear All,
I need a Regular Expression to validate a date
in yyyy-mm-dd at Server Side.
Any help will be greatly appreciated.
Thanks in advance .
Regards,
Kasi
|
|
|
|
|
The program Expresso is great for learning/testing regex, it's easy to find with google. In this case, it's just
\d{4}-\d{2}-\d{2}
assuming you want to force the format you showed ( i.e. not accepting 2007-12-2 or 2007-2-12 )
If you want to accept those values, it's
\d{4}-\d{1,2}-\d{1,2}
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 )
|
|
|
|
|
Your help is appreciated.
Always ,
Kasi
|
|
|
|
|
how to Make a Project in ASP.net Which will capture Image by Using a Webcam?
May we add a part of an individual project in to our application ? if we have only EXE of that Project
|
|
|
|
|
to capture a webcam, you'll need to write the code as a browser plugin, which means your users need .NET installed ( if you use C# ) and will need to trust your site enough to allow your code to run on their machine. This is not likely to work unless you are dealing with users who already trust you.
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 )
|
|
|
|
|
big>Hi there!
While doing a project I got struck at a problem.... I have to create a grid view in which i have to generate dynamic rows and dynamic column. I m able to generate the rows but m not able to generate column. I have to edit that column also........... can any one help me to solve the problem......
Thanks & regard
Vikash Kumar Singh
|
|
|
|
|
create an instance of field type that you want to add in your gridview.
For eg,If you want to create a buttonfield, create an instance of buttonfield.
Dim col1 As New ButtonField
Next set the basic properties for that instance.
col1.HeaderText = "ButtonColumn"
col1.ButtonType = ButtonType.Button
col1.Text = "Click"
Add that instance to your gridview
GridView1.Columns.Add(col1)
with regards,
lavanya
|
|
|
|
|
i was trying to populate the dropdownlist in the following manner.
objclsdb.BindingWithControl(this.DropDownList1, "ItemID", "ItemName");
2nd parameter is value member
3rd member is display member
public string BindingWithControl(DropDownList ctl,string ValueMember,string DisplayMember)
{
ctl.DataTextField = DisplayMember;
ctl.DataValueField = ValueMember;
ctl.DataSource = ds;
}
but the code is not populating the dropdonlist.
code for dataset is not mentioned .
because it is working.
Soniagupta1@yahoo.co.in
|
|
|
|
|
ctl.DataBind(); at the end of your function.
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 )
|
|
|
|
|
ThanQ Boss
Soniagupta1@yahoo.co.in
|
|
|
|
|
i guess you're forgetting something else
if you're working in web app
ctl.DataBind();
your method will be something like this:
public string BindingWithControl(DropDownList ctl,string ValueMember,string DisplayMember)
{
ctl.DataTextField = DisplayMember;
ctl.DataValueField = ValueMember;
ctl.DataSource = ds;
ctl.DataBind(); // here you're telling the control, now go get the data
}
|
|
|
|