Click here to Skip to main content

ASP.NET

   

 
You must Sign In to use this message board.
 
Search this forum  
    Noise  Layout  Per page  Show 
  Refresh
QuestionHOW TO ANSWER A QUESTIONPopularadminChris Maunder22:39 12 Jul '09  
Apologies for the shouting but this is important.
 
When answering a question please:
  1. Read the question carefully
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
  3. If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
  4. 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

QuestionHow to get an answer to your questionadminChris Maunder16:29 10 Nov '05  
For those new to message boards please try to follow a few simple rules when posting your question.
  1. Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
     
  2. 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.
     
  3. Keep the subject line brief, but descriptive. eg "File Serialization problem"
     
  4. Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
     
  5. 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.
     
  6. 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.
     
  7. 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.
     
  8. Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
     
  9. 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.
     
  10. Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
     
  11. If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
     
  12. No advertising or soliciting.
     
  13. 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

QuestionFiltering in headermemberbyka2hrs 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
QuestionMessage Automatically RemovedmemberHa_Hoa_A106hrs 34mins ago 
Message Automatically Removed
AnswerRe: learning asp.net c# linqmvpSandeep Mewara6hrs 4mins ago 
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.
Sandeep Mewara
Microsoft ASP.NET MVP
 
[My latest Article]: Server side Delimiters in ASP.NET[^]

GeneralRe: learning asp.net c# linqmvpRichard MacCutchan5hrs 3mins ago 
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.

GeneralRe: learning asp.net c# linqmvpSandeep Mewara2hrs 51mins ago 
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. Smile | :)
Sandeep Mewara
Microsoft ASP.NET MVP
 
[My latest Article]: Server side Delimiters in ASP.NET[^]

QuestionHow to Create and Access Session Variables [modified]memberASPnoob8hrs 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.

AnswerRe: How to Create and Access Session VariablesmvpSandeep Mewara5hrs 58mins 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[^]
Sandeep Mewara
Microsoft ASP.NET MVP
 
[My latest Article]: Server side Delimiters in ASP.NET[^]

QuestionTurning a VS2010 project into a control [modified]memberSyntax 40414hrs 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 General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web02 | 2.5.120912.1 | Last Updated 19 Sep 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid