|
I still facing prob. regarding how to do operation on click of button which i am sending through email.
If i click of buttong send by email,
then onclick of that mail, i want to do some update operation in Sql Server table.
How to do this ?
prakash sawant
|
|
|
|
|
The event handler for the button on the aspx page will be executed.
|
|
|
|
|
Hi,
Suppose i want to change the value "A" and to replace it by "B" on click of the button , which i sent by email.
So,
when i just click on the button (in email)
the event should get fired and in SQL SERVER 2000, my data should get updated from "A" to "B"
How can i do this.
On click of the button (in email) no other link should get opened.
prakash sawant
|
|
|
|
|
in the code aspx page, in the code behind for the button, you'll have to write the code for the interaction with the database - the usual stuff (SqlConnection, SqlCommand, command.ExecuteNonQuery).
When the user clicks on the button the code is executed; if you don't redirect to another page, no other page is open.
|
|
|
|
|
Oh thanks.
I thought that it will be more complecated issue...........
Thanks a lot for ur great help.
|
|
|
|
|
I would like to add a checkbox control in first column of all the rows in a grid view, and associated settings at run time. How to make it?
Jey
|
|
|
|
|
I would to like add a check box control in first column of Gridview and specify the settings for that through coding. How to make it?
Thanks in advance!
Jey
|
|
|
|
|
I would to like add a check box control in first column of Gridview and specify the settings for that through coding. How to make it?
Thanks in advance!
Jey
|
|
|
|
|
you can get many examples related to gidview
Here[^].
And please don't repost.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Thanks Guy, It's really useful link. Actually it was shown some error msg, while i posted the msg. so that i repeated it unknownly. It' wont happen in future.
Jey
|
|
|
|
|
always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi there,
You need to use like this in Your GridView.
<Columns><br />
<asp:TemplateField HeaderText="SomeHeadingHere"><br />
<ItemTemplate><br />
<asp:CheckBox ID="cbox" runat="server" /> <br />
</ItemTemplate> <br />
</asp:TemplateField><br />
</Columns>
Also You may get some samples from Here[^]
|
|
|
|
|
Hello, everyone:
i am using treeview control of ie web controls in vs2003.
I have written a javascript code to CHECk - UNCHECK all the Child nodes if parent node is UNCHECKED or checked in the client side. However, when i click a button to retrieve the checked treenodes, all nodes' checked property is false. Why?? and how could i retrieve the checked node? any idea is appreciated, thanX in advance!
Regards,
Steven
|
|
|
|
|
Sir,
I am using the following code for disabling the back button but the back button is not being disabled. Please help.
<br />
Response.Buffer = True<br />
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1D)<br />
Response.Expires = -1500<br />
Response.CacheControl = "no-cache"
Thanks
|
|
|
|
|
Hi,
The Code what you have used previously only Clear the Cache. Consider the following situation. You need to use the JavaScript for this purpose.
From Page A, You are navigated to Page B. User should not be allowed to go to Page A from Page B.
Put the code below in Page A.
To Disable Back
window.history.forward(1);
To Disable Forward
window.history.back(1);
Regards,
Jay
|
|
|
|
|
And no, you cannot disable the back button in the browser.
You cannot control the browser software that is residing on the client, from your server in a normal web application.
It is important that you understand this concept clearly.
There are ways to do this, but for that you have write a complete browser emulator.
Shreekar
http://shreekarishere.blogspot.com
|
|
|
|
|
Hi,
how i can get the week of a year based on the current date. When i searched Internet i have seen by using namespace system.globalization, we can get weekofyear. But its not working properly. Can someone help regarding this matter.
Reagards,
MinuAb
|
|
|
|
|
What is the code you are using? What is the error you are getting?
Help us help you
Shreekar
http://shreekarishere.blogspot.com
|
|
|
|
|
i can create a text file in asp.net(C#). and i can write a text in that now i want write secend row in new row for examle:
hi
how are you
what shoud i do?
my code is this:
System.IO.FileStream f = System.IO.File.Create("c:\\a.css");
f.Close();
using (System.IO.StreamWriter sw = new System.IO.StreamWriter ("c:\\a.css"))
{
string txt = "hi" + "\n" + "how are u";
sw.WriteLine(txt);
sw.Close();
}
|
|
|
|
|
Try System.Environment.Newline For using new line
|
|
|
|
|
ptvce wrote: string txt = "hi" + "\n" + "how are u";
just write : string txt = "hi" + "\r\n" + "how are u";
www.behzadi.net
|
|
|
|
|
|
How can i use Datagrid for displaying as well as select an item from the datagrid list.
If i display Id,name and i need to update using one selected row from the datagrid,How to do this.
this updation will be done in the other page.My problem is how to select from the datagrid,i know only how to display,but i need how to select from the DataGrid.
Help me out.
Thanks in advance.
kissy
|
|
|
|
|
Sir,
This reply is not concerned with ur query .This is concerned with ur previous query.
U can i think display the the columns .use table tag in the drop downlist class.use three td tags in one tr tag and finally bind it.
Hope it can help u.
Thanks
|
|
|
|
|
Ur updation should be done in another page.
U fist store ur datakey value in session.
call that session on another page and retrive the datakey value.
by taking this datakey value as a referece,
Create on function for updation of data and pass on parameter to that function.
And now assign this datakey value to that parameter
for. e.g. Public Shared Function (ByVal Id as Integer) as boolean
before this function assign "Session value" to "Id".
Ok ?
Bye ?
Hope u will get answer.
prakash sawant
|
|
|
|