|
This is my code:
What mistake i have made? Why the event is not firing ?
protected void GridView1_OnSelectedIndexChanged(object sender, EventArgs e)
{
Response.Write("Selection");
}
Inline Code:
<asp:gridview id="GridView1" runat="server" autogeneratecolumns="False" allowpaging="True" pagesize="5" showheader="False" onselectedindexchanged="GridView1_OnSelectedIndexChanged">
<columns>
<asp:templatefield>
<itemtemplate>
]]>' width="40" height="50" src='<% #DataBinder.Eval(Container.DataItem,"ImagePath")%>' id="img" runat="server" />
<asp:image id="Image1" imageurl="">]]>' runat="server" />
<columns> <asp:templatefield>
<itemtemplate>
<asp:linkbutton text="">]]>' runat="server" ID="BookTitle">
<asp:label runat="server" text="Author" forecolor="ButtonShadow" id="AuthorLbl" font-size="Small"> | <asp:linkbutton runat="server" id="AuthorLBtn" font-size="small" text="">]]>' > |
VanithaVasu
|
|
|
|
|
i have my forms and usernames in the database , which tells , which form pertains to which user.
Now my question is , still there is any need to utilize the autorization tag in the web.config file ?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Do you want to authorize certain users to view certain pages, or do you want to handle it by having your database authorization fail on pages that a user is not allowed to see ( and any non data driven pages will just always work ) ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I want to handle it by my database .Still i need the authorization concepts in the web.config file ?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Hi refer this site:
http://www.codeproject.com/KB/webforms/ReportViewer.aspx[^]
And did my reportviewer,
but in that its showing error in sqlhelper place,
But i used same code how they said in that site,
whats the probs?,
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
If you have a question about an article, ask the article author. That's why there's a forum under teh article.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all,
I have made a TreeView, it displays everything I want. Now I have set:
"OnSelectedNodeChanged", to fire my event "SelectNode". Now the event works fine, however it posts back to the page (reloads the page). Is there a way that I can rather just call a JavaScript function, rather than have to reload the entire page?
For example, I click a TreeNode, I would like to pass the TreeNode.Value to a JavaScript function, without reloading the page.
Regards,
CD
|
|
|
|
|
Hi All,
I hope this is not the wrong forum for my question, and if it is I apologize. I went out and got me an external hard drive so that I can install VS2005 on it. I figured it would be a cheaper alternative to buying a laptop, and it would allow me to take the external HDD any where and run VS2005 on most any machine. In order to install and run programs in VS2005 such as ASP.NET, VB2005, etc. on the external HDD, must I install an operating system on the external HDD? Has anyone ever done this? I've read that this can not be done, but just to find out if that is the absolute truth, I've decided to post this question. Thank you in advance for your response.
|
|
|
|
|
|
hello friends. i must do a thing about url rewrite. i must make show my web site url like www.mysitename.com/abc. u can see this for example site www.blankcliks.com. if you will enter that web site, you will see the url like www.blankclicks.com/www.facebook.com or www.blankclicks.com/www.google.co.uk. if you have any idea, you would write; i will be happy. thank you. (bytheway, i m sorry for my bad english)
viva la commune
|
|
|
|
|
Good afternoon,
I'm attempting to create an ASP.NET website that has two horizontal frames. A top frame will be a frame that loads back data from 6 sql stored procedures and dumps them into datagrids. The bottom frame will contain several buttons, listboxes, and other user interaction controls.
The problem I'm having is that I want the user controls in the bottom frame to load first so that the user can use them while the queries run one by one in the top and fill out the scoreboard.
I have tried both an inline frame (using one for the top section) and normal frames, but I can't get them to do what I'm looking for. Can someone point me in the right direction?
David
|
|
|
|
|
Since they are in frames they should load independently of each other, as long as the target pages are different. What behavior are you seeing?
only two letters away from being an asset
|
|
|
|
|
What I'm seeing is that the top frame (which runs a sql stored procedure in it's page load event) remains blank along with the bottom frame. When the data grid comes back in the top frame, the test button appears in the bottom frame. This takes around 10-15 seconds, which is consistant with how long I expect the stored procedure to take.
I had expected the button in the bottom frame to pop up immediately and have that frame be usable while the top frame continued to wait for the sql data to come back.
David
|
|
|
|
|
Try some AJAX type magic
only two letters away from being an asset
|
|
|
|
|
I will look into AJAX...it's something I've never used before. Do you know any good places to start? Most of my asp.net programming has focused on doing as little as possible on the html side and as much as possible on the VB Code behind.
David
|
|
|
|
|
Another possibility may be to be to load the top page empty, so the bottom will also load, then immediately kick off a postback on the top to load the data.
only two letters away from being an asset
|
|
|
|
|
|
Don't cross post it doesn't get you an answer any faster, it just gets you ignored.
only two letters away from being an asset
|
|
|
|
|
sorry, i'm new, i wasn't sure where to put the message, i'll take this one off
|
|
|
|
|
The very first message "How to get an answer to your question" is where you should begin.
only two letters away from being an asset
|
|
|
|
|
|
Hey all,
I've recently jumped onto ASP.NET (normally code in PHP). I'm doing the C# flavour, if that makes much difference.
I have created a class like this:
public class TreeNode2 : TreeNode
{
private string _dbuid;
public string DbType
{
get { return _dbtype; }
set { _dbtype = value; }
}
public TreeNode2(string text, string value, string dbuid, string dbtype)
{
this.Text = text;
this.Value = value;
this._dbuid = dbuid;
this._dbtype = dbtype;
}
}
Which has been placed inside the "App_Code" folder. Now on my ASPX page, I have this:
<asp:TreeView ID="TreeView1" runat="server" ShowLines="True" OnTreeNodePopulate="PopulateNode">
<Nodes>
<asp:TreeNode Expanded="True" Text="Users" Value="Users">
<asp:TreeNode PopulateOnDemand="True" Text="John" Value="John" Expanded="False"></asp:TreeNode>
<asp:TreeNode PopulateOnDemand="True" Text="Mary" Value="Mary" Expanded="False"></asp:TreeNode>
</asp:TreeNode>
</Nodes>
</asp:TreeView>
Now, inside the "PopulateNode" function, I can use TreeNode2, no problem. But how would I go about replacing "<asp:TreeNode..." with "<asp:TreeNode2..." ?
If you need me to explain anything a bit better, please let me know.
Regards,
CD
|
|
|
|
|
Create you own TreeView control. Seriously. Do a quick lookup of server controls like TreeView and how child elements are created.
only two letters away from being an asset
|
|
|
|
|
I had a look around, and I found some source code for all these different AJAX TreeView Controls, but I didn't manage to find any information for what I want to do. Would it be worth me taking some time, picking apart one of the AJAX TreeView controls to find out how to do what I want, or is that just a regular TreeView with AJAX functionality?
I don't really want a whole new TreeView, I only want to be able to bind additional information to each TreeNode, and later on, try add some AJAX functionality.
|
|
|
|
|
AJAX has nothing to do with it, it is client-side, TreeView is a server control.
If all you want is a little extra info, like an id, then use the value property of the TreeNode
only two letters away from being an asset
|
|
|
|