|
Fred...What's the mail id?
|
|
|
|
|
Click the Email link (next to the Reply link) at the foot of this message
|
|
|
|
|
Fred it will become too large.
I wanted to send the page
|
|
|
|
|
I can't email you becasue you haven't, apparently, confirmed your email address with CP... if you just send me a blank email I can then reply to that and then you will be able to email me directly....
!
Fred
|
|
|
|
|
can i use the pege.registerstartupscript function?
|
|
|
|
|
I have it now:
You need to "return false" from the js function to stop the linkbutton posting back the page. Presumably, even if they press Cancel you don't want to to do anything, so you can a;lways return false.
In fact, if you aren't going to do any server-side processing of this utton, you could just make it an ordinary HTML button and avoid this, but anyway: try this:
lnkbtnlogout.Attributes.Add("onclick", "return confirm_delete()")
function confirm_delete()
{
if (confirm("Are you sure you want to exit ?")==true)
{
location.href="../login.aspx";
}
return false;
}
</script>
Fred
|
|
|
|
|
Hi Fred .....
How can i use page.registerstartupstcript to do all these things in code behind file.
|
|
|
|
|
One Post is Enough.
Regards,
Satips.
|
|
|
|
|
Plz change your code here
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
<br />
lnkbtnlogout.Attributes.Add("onclick", "return confirm_delete();")<br />
instead of
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
If (Not Page.IsPostBack) Then<br />
lnkbtnlogout.Attributes.Add("onclick", "return confirm_delete();")<br />
End If
Coz when u click on button then javascript function will not fire.
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
It is very simple to do it.
Just do redirect on click of Button event.
function confirm_delete()
{
if (confirm("Are you sure you want to delete the custom search?"))
return true;
else
return false;
}
BEst regard
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Hi,
Implement the follwing solution.
Put hyperlink button on your page and create a click event handler for it as follwing.
<asp:LinkButton ID="lbtn" runat="server" Text="Click" OnClick="lbtn_Click"></asp:LinkButton>
protected void lbtn_Click(object sender, EventArgs e)
{
Response.Redirect(YourURL);
}
Write javascript function as follwing.
function confirmation()
{
return window.confirm("Are sure u want to redirect");
}
and in Page_Load write the following statement.
lbtn.Attributes.Add("onclick", "javascript:return confirmation();");
I am sure this will solve your problem.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi,
I need to create two trees in a web page.
And, users can drag one node of a tree to the nodes list of another.
Do you have any suggestion?
|
|
|
|
|
hi friends
i have registration page in that page i am having username ,password,Captcha image .
now enter the fields,if username is already exsits ,it will throw the error in label.now page is refreshing that captcha image is changing and password also disappear
now i want the password is didnot disappear and captcha image didnot change ,if username already exisits.
regards
saravanan
|
|
|
|
|
saravanan05 wrote: password also disappear
put the password in session object and assign text box with that session object value When page refreshes due to Error
saravanan05 wrote: page is refreshing that captcha image is changing
What is it ? Where are loading the image in page ?
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... "
|
|
|
|
|
put that password in string and after checking username availabilitty again pass the string value to textbox................
like string password=txtpassword.text;
//Check for username availablity
txtpassword.text=password;
|
|
|
|
|
DOn't reply me reply to user who posted the question
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... "
|
|
|
|
|
hello friends
this is ajay rathi. i am facing a big problem in my asp.net 1.1 project....
i want to show image in datagrid and this image is store in MS SQL SERVER 2000 in binary form.so can anyone of yor help me for this problem..i m using C# as back coding...
please help me to solve this problem
my email id is ajayrathi2004@yahoo.com
i m waiting for your reply.....
|
|
|
|
|
Check this......
Hope this might be helpfull to u
http://www.codeproject.com/cs/database/ImageSaveInDataBase.asp
|
|
|
|
|
Hello Ajay
Write a function that can convert BLOB data to image as told in the article. Then call this function either from itemdatabound event or from page like <img src='<%# yourFunction(Param) %>'>
Happy programming
|
|
|
|
|
Please tell me the use and implementaion of Roles in asp.net 2.0
Sunil Nair
|
|
|
|
|
website menu / ASP.NET Configuration
and set the rolls for form , user etc.,
and it is added in config.file.
vijaya
|
|
|
|
|
good day everyone...
i need help regarding datatables..
how to use/ or insert records in datatables...
sample codes or link is highly appreciated...
thank you everyone in advance.....
start a new beginning in every ending; thats what life for......
|
|
|
|
|
1. If you want to insert values from the stored procedure, then you will have to call that
procedure and fill the table using SQlDataAdapter
DataTable table = new DataTable();
SqlDataAdapter adapter = new SqlDataAdapter()
adapter.Fill(table);
Else here is a sample code for datatable. (If you really don't know anything about using datatables.
DataTable table = new DataTable();
DataColumn col1 = new DataColumn("select",Type.GetType("System.Boolean"));
DataColumn col2 = new DataColumn("Name", Type.GetType("System.String"));
table.Columns.Add(col1);
table.Columns.Add(col2);
DataRow r1 = table.NewRow();
r1["select"] = true;
r1["Name"] = "Something";
DataRow r2 = table.NewRow();
r2["select"] = false;
r2["Name"] = "nothing";
table.Rows.Add(r1);
table.Rows.Add(r2);
|
|
|
|
|
thank you sir....your help really helps me sir... thank you more than words could express....
start a new beginning in every ending; thats what life for......
|
|
|
|
|
Create a new datatable as
Datatable dt=new Datatable();
whatever columns u would like to insert add them.
if(dt.columns["a"]==null)
dt.columns.add(a);
if(dt.columns["b"]==null)
dt.columns.add(b);
if(dt.columns["c"]==null)
dt.columns.add(c);
DataRow dr = dt.NewRow();
dt.Rows.Add(dr);
dt.AcceptChanges();
nextadd the values into datatable as
dt.rows[0]["a"]=txtbox1.text;
dt.rows[0]["b"]=txtbox2.text;
dt.rows[0]["c"]=txtbox3.text;
|
|
|
|