|
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
|
|
|
|
|
Different ways - depends on what you want to do after the selection:
(1) Add a checkbox/radio button to each row. Add a button to the page. Once user clicks on the button, check which row(s) were selected.
(2) Add a select column to the grid. If you are using .Net 1.x, then add a command column and set text to Select.
Shreekar
http://shreekarishere.blogspot.com
|
|
|
|
|
|
iam using c# asp.net and i want to retrieve the system date and put date in text box
any ideas highy appreciated
|
|
|
|
|
You can get that like this:
DateTime.Now
Best Regards,
Apurva Kaushal
|
|
|
|
|
thank u kaushal
thing is i want to display only date is it possible
|
|
|
|
|
Yes you can display the date part by converting it into shortdatestring. Like this:
DateTime.Now.ToShortDateString();
Best Regards,
Apurva Kaushal
|
|
|
|
|
TextBox.Text=DateTime.Now.ToString()
Regards,
Jay
|
|
|
|