|
you can use onitemdatabound event of the datagrid, that event gets fired for all the rows of the datagrid.
Best Regards,
Apurva Kaushal
|
|
|
|
|
if u provide link ,i wud be very thank full
with regards'
|
|
|
|
|
check this:
http://aspalliance.com/31
thanks,
Rahi
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... "
|
|
|
|
|
Here[^] you can get so many articles on datagrid.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi Apurva,
thanks for Letting us know about this site. it is really helpfull to me.
Thanks,
Rahi
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... "
|
|
|
|
|
Always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi Apurva,
Would it be possible for u to giv some good link same as of datagrid for GridView.I am working in 2.0 Version totally new in ASP.NET2.0.
Thanks.
|
|
|
|
|
sure..
you can get some good articles on gridview from Here[^] and here[^].
Although the second one I haven't gone through.
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
Always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
how to create dynamic rows in datagrid using datatable and datarow in asp.net1.1
|
|
|
|
|
hi,
as one of our friends said ( c the "datagrid" Query) this is really good site for DataGrid. try to check this site.
http://www.datagridgirl.com/articles.aspx
as per my opinion, it is not a good idea to create dynamic rows in datagrid. it will give u the performance issue.
thanks,
Rahi
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
How to register aspnet_regiis-i through command prompt
many thanks
hai all please clarify mny doubts
|
|
|
|
|
1. Open Visual Studio 2005 command prompt
2. Type aspnet_regiis -i.
3. you are done
|
|
|
|
|
Hi gurus
I'm new to ASP NET. I did an example. It is a aspx page that contains a button. When I click the button, I expect the code will create another button on the page and the created button is handled by a procedure. I run my code and it worked well until I clicked the created button: Not only its handler function didn't work but also it disappeared.
Here is my code (at the initiation, on the page, there is only a button btnAdd) :
-------------- ------------------------
Protected Sub btnAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAdd.Click
Dim Btn As Button
Btn = New Button()
Btn.ID = "Btn " + Now.ToString("dd/mm/yyyy hh:mm:ss")
Btn.Text = "Created Time: " + Now.ToString("dd/mm/yyyy hh:mm:ss")
AddHandler Btn.Command, AddressOf ButtonHandler
Me.form1.Controls.Add(Btn)
End Sub
Public Sub ButtonHandler(ByVal sender As Object, ByVal e As WebControls.CommandEventArgs)
Me.Title = e.CommandArgument'example code
End Sub
-------------- ------------------------
Pls help me.
Thank you very much.
|
|
|
|
|
Hi
I using Japanese OS. A web application which is already build with .NET 2003. Now i migrated all the web source to .NET 2005. Before i migrating i just look over some help in msn, in that they specified that all the ASP Pages should be saved to UTF-8 instead of SHIFT-JIS. I done so.. and converted to .NET 2005 formats. Now its not supports for examples the response and request doesnt support Japanese Language. I also mentioned the encoding format in web.config using <globalisation> . what i want to do for japanese support in response and request object?.
I also tested by creating a new project in VS2005. This works fine. But while converting from VS2003 to VS2005 its not support .. Anyone can help me????
Magesh
|
|
|
|
|
Hello,
I’m working on a window application with visual studio 2005. Get the following error message.
Unable to copy file "obj\Debug\MyProject.exe" to "bin\Debug\ MyProject.exe". The process cannot access the file 'bin\Debug\ MyProject.exe' because it is being used by another process.
What I did is:
1. I just copied some staffs from another project. When I build it, the above message is displayed.
2. I restarted my computer and rebuild the project, the error disappears
3. I add more code on my project and build it, the error comes again
If you can give me any good suggestion, I will really appreciate it.
Jane
|
|
|
|
|
Seems it does not have any thing to do with ASP.NET, but you might want to use the SysInternal tool to see which process holds the file.
|
|
|
|
|
Hi All,
Newbie question !!
I have a placeholder on a standard aspx page. In page_load i create a treeview and fill it .. "phDirList" is the placeholder. ListDirectories adds a new node per directory and calls itself again for any subdirectories, it also returns a list of the directories for my use later.
if (!Page.IsPostBack)
{
phDirList.Controls.Clear();
phFileList.Controls.Clear();
// get home directory first
String AppPath = Request.ServerVariables["PATH_TRANSLATED"];
// get rid of the page name and replace with document root
int i = AppPath.LastIndexOf("\\");
AppPath = AppPath.Substring(0, i + 1);
AppPath = AppPath + "Documents\\";
// Create treeview and set event Handler
TreeView treeView = new TreeView();
treeView.SelectedNodeChanged += new EventHandler(Node_Change);
// Set node and action to SELECT
TreeNode rootNode = new TreeNode();
rootNode.Text = "Documents";
rootNode.Value = AppPath;
rootNode.NavigateUrl = String.Empty;
rootNode.SelectAction = TreeNodeSelectAction.Select;
// list directories etc
List<string> rootDir = Utility.ListDirectories(AppPath, rootNode, true);
treeView.Nodes.Add(rootNode);
rootNode.CollapseAll();
phDirList.Controls.Add(treeView);
} // end IsPostBack
I then have Node_Change defined as ...
public void Node_Change(object sender, EventArgs args)
{
// do stuff ....
}
The tree looks fine to start with but then the problems begin ... problem is two fold ...
1. The event handler never fires. I have read bits on other posts about setting the SelectionAction to Select for items that should call the SelectedNodeChanged handler, and also that setting NavigationURL to an emtpy string forces the node into selection mode rather than navigation .... but the event handler still does not fire.
2. After clicking a node, the tree disappears !!!
Any help that can be offered is most appreciated.
|
|
|
|
|
C# Tea Boy wrote: Newbie question !!
A newbie answer .
You have to reinsert dynamic controls as the ASP.NET does not persist that for you, that said you shouldn't put your code to create the dynamic control in the if(!Page.IsPostBack) statement.
|
|
|
|
|
Rookie Error !!!
Works perfect now. Thank you for your help.
|
|
|
|
|
I made a GirdView and fill it with data from database. In this GirdView
i have five columns. First column is Name of item that is represented
in this grid. I want to make items in this column url addresses so when
i click on item name it opens another page to edit the item on which I
clicked.
Can this be done? And if can, how?
Thanks!
Vasini
|
|
|
|
|
Have you checked MSDN at all ? The answer is that you can define your columns, and you can define them to be hyperlinks, if you want to, and specify a URL which includes data items of your choice on the querystring.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hi all.
I put my swf file in asp.net ( visual studio 2003 ) using this code :
<object width="200" height="150"> <param name="movie" value="myFlash.swf" /> <embed src="myFlash.swf" width="200" height="150" /><object>
and then I run my program. the program has no errors and runs but there is nothing to show in browser ( ie )
why ??
the page has no swf in it .
what shoul I do ? I just use the code above . no other things...
please help me.
|
|
|
|
|
Try this.
<object width="200" height="150" >
<param name="movie" value="myFlash.swf" />
<embed src="myFlash.swf" width="200" height="150" />
<object>
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|