ASP.NET
|
|
 |
|
 |
Apologies for the shouting but this is important.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
 |
 | How to get an answer to your question |  | Chris Maunder | 16:29 10 Nov '05 |
|
 |
For those new to message boards please try to follow a few simple rules when posting your question.- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
 |
 | Filtering in header |  | byka | 2hrs 43mins ago |
|
 |
I have dropdownlist in my gridView header which I populate on RowDataBound event.
When I am trying to add DropDownList selectedIndexChange Event in code DropDownList is not in a lits. How do I add event handler event for dropdownlist in code?
Private Sub gvMarketingPlans_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gvMarketingPlans.RowDataBound
If e.Row.RowType = DataControlRowType.Header Then
Dim ddlProducts As DropDownList = DirectCast(e.Row.Cells(1).FindControl("ddlProduct"), DropDownList)
ddlProducts.Items.Clear()
With ddlProducts
.DataSource = DataSource
.DataTextField = "Description"
.DataValueField = "ProductCode"
.DataBind()
.Items.Insert(0, New ListItem("< All >", ""))
End With
End If
End Sub
|
|
|
|
 |
 | Message Automatically Removed |  | Ha_Hoa_A10 | 6hrs 34mins ago |
|
 |
Message Automatically Removed
|
|
|
|
 |
|
 |
This is a forum where people post their issues in form of specific question and others try to help in resolving it.
Based on what you have posted, surely it is not a question. I did not clicked the link as it looked malicious.
Please don't post information messages in this forum. If you have specific question, you are most welcome.
In case you want to share anything with others (some tutorial stuff), please post the content here at CP as a Tip/Article[^] and it will be published post approval.
|
|
|
|
 |
|
 |
OP's post is spam and I have flagged both it and the OP account as such.
One of these days I'm going to think of a really clever signature.
|
|
|
|
 |
|
 |
Thanks Richard. Since you are sure that it's a spam post and a spam account, I will go by your word and mark them so.
|
|
|
|
 |
 | How to Create and Access Session Variables [modified] |  | ASPnoob | 8hrs 1 min ago |
|
 |
Hi all I am trying learn how to create and access session variables inside and out side of pageload. I've found that I can create a session variable inside of the pageload method like the following:
int myID = 0;
Session["UserID"] = RetrievedID;
Then I can access the session variable in the pageload method of another page like the following:
int myID = (int)Session["UserID"];
Some questions I have are do I need to use Response.Redirect() method to successfully send session variables to another page, and how do I create and access session variables outside of the pageload method. Thanks in advance.
modified 7 hrs ago.
|
|
|
|
 |
|
 |
ASPnoob wrote: do I need to use Response.Redirect() method to successfully send session variables to another page
No
ASPnoob wrote: how do I create and access session variables outside of the pageload method.
similarly as you did now.
Now, overall, you need to understand the concept of Session. First and foremost, it is not page level, it is across the application per user level. For a given user, a session can be created in any page and accessed in any page.
Read about it in much more detail, here:
MSDN: ASP.NET Session State Overview[^]
Exploring Session in ASP.NET[^]
|
|
|
|
 |
 | Turning a VS2010 project into a control [modified] |  | Syntax 404 | 14hrs 48mins ago |
|
 |
So, this is probably something I should know how to do anyway but don't... sadly.
I would like to take a project I found here, specifically: http://www.codeproject.com/Articles/460142/ASP-NET-Multiple-File-Upload-With-Drag-Drop-and-Pr and turn it into a control that I can use on an existing website (after changing the save directory and such of course) in the same way I would drop in, say, CKEditor... drop the DLL's in the Bin directory, register it on the page and then lob in a little, <mfu:mfuUpload ID="somesuch" runat="server" /> magic.
So, how would I go about doing that?
For the record, I'm not as lame as this question implies, there're just giant holes in an otherwise brilliant mind.
modified 14 hrs ago.
|
|
|
|
 |
|
|
General
News
Suggestion
Question
Bug
Answer
Joke
Rant
Admin