|
Hi i used itemcommand ,
but i am not getting link
this is my code:
Private Sub dglocal_itemdbound(ByVal source As System.Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dglocal.ItemDataBound
If e.Item.Cells(0).Text = "00:00" Then
Dim hplink As HyperLink
hplink.Text = e.Item.Cells(0).Text
hplink.NavigateUrl = "frmTravelExpDetails.aspx"
e.Item.Cells(0).Controls.Add(hplink)
End If
End Sub
whats wrong in that?,
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
Compare with this,
protected void dGrid_ItemDataBound(object sender, DataGridItemEventArgs e)<br />
{<br />
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)<br />
{<br />
HyperLink hypLink = new HyperLink();<br />
hypLink.Text = e.Item.Cells[0].Text;<br />
hypLink.NavigateUrl = "Default.aspx";<br />
e.Item.Cells[0].Controls.Add(hypLink);<br />
}<br />
}
Arun J
|
|
|
|
|
I use Html Button and Javascript code to Add items to Asp:DropDownList Control and use Asp:Button Click event to read Asp:DropDownList added items but when i click Asp:Button the Asp:DropDownList Added Items are disappeared how to read the dropdwon list items pls help me
|
|
|
|
|
Are you adding the drop down items at client side ?
and trying to read those added one at server side ?
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... "
|
|
|
|
|
|
disable the post back for command button.
|
|
|
|
|
Hello......
i want to give validation on tab key press of particular server control.
just like i have 5 textbox and i wanna give required validation on 1st textbox and in other textbox have another validation.
when press tab on first textbox then only this validation should be fire..
then vice-varsa on every particular control.
Raj
|
|
|
|
|
Try with onfocusout .
ie,txt1.Attributes.Add("onfocusout","return FunctionName()")
It'll work on tab press when focus is in txt1.
Arun J
|
|
|
|
|
|
How can i get hard disk unique serial number.Can i change the Ip address of a system
|
|
|
|
|
Hi,
for that you have to use WMI.
Search on that and find better code for that.
You will get lots in Google.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
I tried it but i cant get the code in asp.net with vb.
|
|
|
|
|
Can i change the Ip address of a system
|
|
|
|
|
It Not possible to change the IP address of the client machine throught ASP.net as it runs on the server side.
|
|
|
|
|
Deepthy.P.M wrote: How can i get hard disk unique serial number
Well, which one do you mean ? Client machines hard disk or server ?
Deepthy.P.M wrote: Can i change the Ip address of a system
Nope. You can't change it. BTW, why do you want to do these ?
|
|
|
|
|
if you want to get the client machine hdd details.
you should write a cab file using vb or vc,
also you need to sign th component, otherwise you need to set some configuration in the internet explorer.
through the cab , you can read any content from the client machine.
|
|
|
|
|
Hi i am using Vs2003,
I like to do some calendar timing operaion on my form,
If user click one date,it have to show the date timings and in that enter some details,
Example like in yahoomail calendar,
Any one plz give me ideasabt that,
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
Hello Friends,
Can we apply javascript validation in Login Control. In login control it requires UserName and Password. If we don't enter UserName and Password and click the Submit or click button then it must ask for the UserName and Password in alert function(s)...........
|
|
|
|
|
just write this code on button click(at Code Window)
if(username.Text!="" && passsword.Text!="")
{
here login process
}
else
{
string focusScript = "<script language='javascript'>alert('UserName or Password incorrect ");</script>";
Page.RegisterStartupScript("FocusScript", focusScript);
}
|
|
|
|
|
Hello Friends,
I'm using "Login" control provided by the Toolbox.
And also you're using username.Text and password.Text.........
Where we find the button click.
I think this control doesnot provide click().......
Plz explain.......
|
|
|
|
|
i am doing project in ASP.Net as front end and SQL is my back end i need coding for username and password for login area.
waiting for the reply
|
|
|
|
|
SqlConnection con;
SqlCommand cmd;
SqlDataReader dr;
string pvtConnStr;
string trck = "";
pvtConnStr = here give ur connection String;
con = new SqlConnection(pvtConnStr);
try
{
con.Open();
cmd = new SqlCommand("select username,password from user_table", con);
dr = cmd.ExecuteReader();
if (dr.HasRows)
{
while (dr.Read())
{
if (UserName.Text == dr[0].ToString() && PassWord.Text == dr[1].ToString())
{
Response.Redirect("Default.aspx");
}
}
Label2.Visible = true;
Label2.Text = "InValid User Access";
}
//Response.Redirect("Default2.aspx");
con.Close();
}
catch (Exception ex)
{
Label2.Visible = true;
Label2.Text = "Problem connect to Database";
}
it works perfectly
|
|
|
|
|
You shouldn't just give someone a complete solution to their problem when they clearly haven't made any attempt to solve it themselves. By doing this, you are just fostering a culture of dependency and discouraging the poster from thinking for themselves.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
A.Jebamalai Robinson wrote: i need coding for username and password for login area.
You are in wrong place. No one here will provide you a source code. Read forum guidelines before posting a question.
|
|
|
|
|
i want to open modal file open dialog box on click of the button as we get in fileupload control.
can anyone help me in this.
|
|
|
|