Click here to Skip to main content
15,913,242 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: imagebutton in placeholder Pin
kunjumonu28-Mar-10 6:32
kunjumonu28-Mar-10 6:32 
Questiongetting data for no of records Pin
inayat basha27-Mar-10 10:16
inayat basha27-Mar-10 10:16 
AnswerRe: getting data for no of records Pin
PSK_27-Mar-10 18:50
PSK_27-Mar-10 18:50 
GeneralRe: getting data for no of records Pin
Brij27-Mar-10 23:08
mentorBrij27-Mar-10 23:08 
GeneralRe: getting data for no of records Pin
PSK_28-Mar-10 2:56
PSK_28-Mar-10 2:56 
GeneralRe: getting data for no of records Pin
Brij28-Mar-10 3:14
mentorBrij28-Mar-10 3:14 
QuestionFileupload problem, please help. Pin
Farraj27-Mar-10 8:35
Farraj27-Mar-10 8:35 
AnswerRe: Fileupload problem, please help. Pin
Sandeep Mewara27-Mar-10 9:02
mveSandeep Mewara27-Mar-10 9:02 
GeneralRe: Fileupload problem, please help. Pin
Farraj27-Mar-10 9:09
Farraj27-Mar-10 9:09 
AnswerRe: Fileupload problem, please help. Pin
Not Active27-Mar-10 9:12
mentorNot Active27-Mar-10 9:12 
AnswerRe: Fileupload problem, please help. Pin
Farraj27-Mar-10 9:18
Farraj27-Mar-10 9:18 
GeneralRe: Fileupload problem, please help. Pin
michaelschmitt28-Mar-10 23:48
michaelschmitt28-Mar-10 23:48 
GeneralRe: Fileupload problem, please help. Pin
Farraj29-Mar-10 2:05
Farraj29-Mar-10 2:05 
GeneralRe: Fileupload problem, please help. [modified] Pin
michaelschmitt29-Mar-10 3:35
michaelschmitt29-Mar-10 3:35 
Questionfetch date and time separately from datetime field in C#.net Pin
ships_agr27-Mar-10 6:57
ships_agr27-Mar-10 6:57 
AnswerRe: fetch date and time separately from datetime field in C#.net Pin
Tarakeshwar Reddy27-Mar-10 7:19
professionalTarakeshwar Reddy27-Mar-10 7:19 
GeneralRe: fetch date and time separately from datetime field in C#.net Pin
ships_agr27-Mar-10 7:38
ships_agr27-Mar-10 7:38 
GeneralRe: fetch date and time separately from datetime field in C#.net Pin
Tarakeshwar Reddy27-Mar-10 7:50
professionalTarakeshwar Reddy27-Mar-10 7:50 
QuestionMessage Removed Pin
27-Mar-10 3:29
kunjumonu27-Mar-10 3:29 
AnswerRe: sending email with text and url Pin
Not Active27-Mar-10 3:43
mentorNot Active27-Mar-10 3:43 
Questionemail sending with some text and url Pin
kunjumonu27-Mar-10 3:23
kunjumonu27-Mar-10 3:23 
AnswerRe: email sending with some text and url Pin
Not Active27-Mar-10 3:42
mentorNot Active27-Mar-10 3:42 
QuestionMessage Removed Pin
27-Mar-10 3:16
kunjumonu27-Mar-10 3:16 
AnswerRe: image button in placeholderr Pin
Not Active27-Mar-10 3:40
mentorNot Active27-Mar-10 3:40 
GeneralRe: image button in placeholderr Pin
kunjumonu27-Mar-10 23:51
kunjumonu27-Mar-10 23:51 
string path = MapPath("~/cards/");
        string full = path + Session["file"] + "/";
        string[] s = Directory.GetFiles(full);
        
        foreach (string str in s)
        {
            string f = Path.GetFileName(str);
            
            ImageButton im = new ImageButton();
            im.Width = 150;
            im.Height = 150;
           
            im.ImageUrl = "~/cards/" + Session["file"] + "/" + f;
            Session["selected"] = im.ImageUrl;


            im.Click += new ImageClickEventHandler(im_Click);
           
            
            
            PlaceHolder1.Controls.Add(im);
            
            EnsureChildControls();
  
       }
        
    }
    protected void im_Click(object sender,ImageClickEventArgs f)
    {

      //  Session["selected"] = g;
      //  Label1.Text = Session["selected"].ToString();
        Response.Redirect("editor.aspx");
    }

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.