Click here to Skip to main content
15,897,891 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Input Textbox Colour Pin
lucjon12-Apr-07 23:23
lucjon12-Apr-07 23:23 
GeneralRe: Input Textbox Colour Pin
Bubbles212-Apr-07 23:44
Bubbles212-Apr-07 23:44 
AnswerRe: Input Textbox Colour Pin
J4amieC12-Apr-07 23:52
J4amieC12-Apr-07 23:52 
AnswerRe: Input Textbox Colour Pin
Vasudevan Deepak Kumar14-Apr-07 3:53
Vasudevan Deepak Kumar14-Apr-07 3:53 
QuestionNeed code for display the text with Image Pin
sridevi1412-Apr-07 23:11
sridevi1412-Apr-07 23:11 
AnswerRe: Need code for display the text with Image Pin
lucjon12-Apr-07 23:38
lucjon12-Apr-07 23:38 
GeneralRe: Need code for display the text with Image Pin
sridevi1413-Apr-07 0:19
sridevi1413-Apr-07 0:19 
AnswerRe: Need code for display the text with Image Pin
lucjon13-Apr-07 20:57
lucjon13-Apr-07 20:57 
Sorry Blush | :O
You could try this:
public string GetImagePath()
{
     switch (ddlsunsign.Text) {
          case Aries:
               return "../../DesignTier/SignImages/ariesstat.jpg";
          case Aquarius:
               return "../../DesignTier/SignImages/aquariusstat.jpg";
          //case Libra, Pisces,...
          case default:
               return null;
     }
}
public string GetStat()
{
      switch (ddlsunsign.text) {
           case Aries:
                return //database code
           //etc
           case default:
                return null;
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
     if (GetImagePath()!=null&&GetStat()!=null) {
          Response.Redirect("ThisPage.aspx?imageloc=\"" + GetImagePath + "\"&text=\"" + GetStat() + "\"");
     }
}
protected void descriptionLabel_PreRender(object sender, EventArgs e)
{
     if (Request.QueryString("text")!=null) { 
           descriptionLabel.Text = Request.QueryString;
     }
     else {
           descriptionLabel.Text = "Error";
     }
}
protected void signImage_PreRender(object sender, EventArgs e)
{
     if (Request.QueryString("imageloc")!=null) {
          signImage.ImageLocation = Request.QueryString("imageloc");
     else {
          signImage.ImageLocation = //friendly error message;
     }
}

GeneralRe: Need code for display the text with Image Pin
lucjon13-Apr-07 21:07
lucjon13-Apr-07 21:07 
QuestionDebugging SQL Insert Pin
Bubbles212-Apr-07 22:55
Bubbles212-Apr-07 22:55 
AnswerRe: Debugging SQL Insert Pin
Shajeel12-Apr-07 23:44
Shajeel12-Apr-07 23:44 
AnswerRe: Debugging SQL Insert Pin
Bubbles213-Apr-07 2:41
Bubbles213-Apr-07 2:41 
QuestionHow to insert text at cursor position in a TextBox Pin
lucjon12-Apr-07 22:08
lucjon12-Apr-07 22:08 
Questionneed help with stanard provider Pin
neodeaths12-Apr-07 22:05
neodeaths12-Apr-07 22:05 
AnswerRe: need help with stanard provider Pin
Jaiprakash M Bankolli12-Apr-07 22:37
Jaiprakash M Bankolli12-Apr-07 22:37 
GeneralRe: need help with stanard provider Pin
neodeaths12-Apr-07 23:06
neodeaths12-Apr-07 23:06 
GeneralRe: need help with stanard provider Pin
Jaiprakash M Bankolli13-Apr-07 1:59
Jaiprakash M Bankolli13-Apr-07 1:59 
GeneralRe: need help with stanard provider Pin
neodeaths15-Apr-07 18:38
neodeaths15-Apr-07 18:38 
QuestionFile upload Pin
J Liang12-Apr-07 22:04
J Liang12-Apr-07 22:04 
AnswerRe: File upload Pin
Jaiprakash M Bankolli12-Apr-07 22:40
Jaiprakash M Bankolli12-Apr-07 22:40 
GeneralRe: File upload Pin
J Liang15-Apr-07 15:19
J Liang15-Apr-07 15:19 
GeneralRe: File upload Pin
Jaiprakash M Bankolli15-Apr-07 21:17
Jaiprakash M Bankolli15-Apr-07 21:17 
GeneralRe: File upload Pin
J Liang16-Apr-07 14:50
J Liang16-Apr-07 14:50 
GeneralRe: File upload Pin
Jaiprakash M Bankolli16-Apr-07 18:41
Jaiprakash M Bankolli16-Apr-07 18:41 
AnswerRe: File upload Pin
Naveed Kamboh13-Apr-07 3:10
Naveed Kamboh13-Apr-07 3:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.