|
Thanks I will click if it is
If I run site from VS, native dll has r/w access and works. It should be some security then
Чесноков
|
|
|
|
|
When a node in a treeview is clicked, a SelectedNodeChanged event is fired if and only if the node that is clicked is not the same node as the previously selected one. However, if I click on a node that is already selected this event is not fired. Does anybody know how I can find out the node that I had clicked on in this instance.
I can use javascript to trap the onClick event but I still don't know how I can find out which node I clicked, in particular, the ValuePath property of the node.
Thanks, in anticipation.
M Pang
|
|
|
|
|
Converting the node into hyperlink would that work ?
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Deal all,
I have a method in my aspx.cs file say methodone,which will be called from one of the event or method from the same aspx.cs file...
So what access specifier i can give for that method.I am thinking private is enough for my requirement. AM i correct / wrong? Please provide your views...
Thanks,
Srinivas Mateti
|
|
|
|
|
If you want to access the method from your html page, you need to make it at least Protected.
I mean if you write
<asp:textbox OnClick="txt_Click" runat="server" />
the txt_click should be made at least protected. Privates cant be used in events.
If you are just calling the method from the class itself, you can use Private.
|
|
|
|
|
Yes, you're correct.
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
I've got in EditItemTemplate text box bound to specific field:
<asp:TextBox ID="textName" runat="server" Text="<%# Bind('Name') %>"></asp:TextBox>
How to get its corrected value in RowUpdating event?
In GridViewUpdateEventArgs NewValues, OldValues and Keys are 0 element arrays???
Чесноков
|
|
|
|
|
|
What? Did the OP change the post after you replied? I don't see any connection here.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Yes you are right.. I just modified the answer.
|
|
|
|
|
DataGridDemo[^] See the section on Textboxes
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi,
I am generating an table in code behind and i would like to get it's HTML code so i can include it into an email,
But it doesn't have an innerhtml property.
Thanks
|
|
|
|
|
Are you using HtmlTable class to make your table ?
If so use
StringBuilder sb = new StringBuilder();
StringWriter tw = new StringWriter(sb);
HtmlTextWriter hw = new HtmlTextWriter(tw);
yourtable.RenderControl(hw);
Now sb will hold the rendered output.
Hope this is what you wanted.
|
|
|
|
|
StringWriter and HtmlTextWriter are disposable. It is a good practice to wrap inside using block when working with disposable objects to avoid resource leaks.
Best wishes,
Navaneeth
|
|
|
|
|
Yes .. This is the responsibility of the user I guess..
Anyways Thanks for your input.. .
|
|
|
|
|
N a v a n e e t h wrote: StringWriter and HtmlTextWriter are disposable. It is a good practice to wrap inside using block when working with disposable objects to avoid resource leaks.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
|
Hi everyone. Is it possible in ASP.net 1.1 to execute Sql Server 2005 SSIS package or dtsx package with C#. I say this because the namespace used for this is Microsoft.SqlServer.Dts.Runtime and this is not showing when I'm trying to add new reference in ASP.net 1.1. Please help.
|
|
|
|
|
Respected,
why this is happen when i open
code project site the content page display -- Unable to load messages due to high load. Please try again --
message.
Thanks.
|
|
|
|
|
What? ?
You mean this is happening in Codeproject site.
If so, this is not the right place to talk about this. Place your query in Site Suggession section.
|
|
|
|
|
Hi All,
In our website, we have to provide activating new users account.
i.e.,In a website if any new user registers we will send the mail right that is ok but we have to send a mail to activate the useraccount.Can any one please tell how to do that ASAP?
thanks in advance
|
|
|
|
|
getaccessyr wrote: how to do that ASAP?
Are you using forms authentication..!If yes..!you can use Guid key ..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
What does it mean?
You have to make your own logic. Just send a mail with a link that has the unique identification in its querystring. Now when user activates the link place the active boolean field in the database to true.
Hey this could be done 1000 ways.. So better you make your own logic.
|
|
|
|
|
I've got GridView control consisted of a template and a bound field.
I defined either autogenerated edit buttons, or added the one in item template.
I also added edit template for GridView control.
When I click that edit button as the view is populated with 1 record to edit it, the rowediting evet fires in which I set GridView.EditIndex = e.NewEditIndex
Page post back happen, but GridView does not change that row into edit mode.
Nither item template to edit template nor bound field???
Чесноков
|
|
|
|
|
hi,
you need to re bind gridview control with in RowEditing event
as
GridHeading.EditIndex = e.NewEditIndex;
BindGrid();
-----
abbas
|
|
|
|