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

ASP.NET

 
GeneralRe: how to restrict image folder from direct access Pin
N a v a n e e t h26-Aug-08 23:30
N a v a n e e t h26-Aug-08 23:30 
GeneralRe: how to restrict image folder from direct access Pin
Neeraj Arora27-Aug-08 1:02
Neeraj Arora27-Aug-08 1:02 
AnswerRe: how to restrict image folder from direct access Pin
NeverHeardOfMe26-Aug-08 22:46
NeverHeardOfMe26-Aug-08 22:46 
QuestionSuggestion for continous printing Pin
Jagwinder Walia26-Aug-08 20:29
Jagwinder Walia26-Aug-08 20:29 
AnswerRe: Suggestion for continous printing Pin
N a v a n e e t h26-Aug-08 21:07
N a v a n e e t h26-Aug-08 21:07 
GeneralRe: Suggestion for continous printing Pin
Jagwinder Walia26-Aug-08 21:28
Jagwinder Walia26-Aug-08 21:28 
QuestionThe server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) for VB DLL Pin
Jai Sankar N26-Aug-08 20:18
Jai Sankar N26-Aug-08 20:18 
Questionfil uploade with update panel of ajax Pin
UD(IA)26-Aug-08 20:09
UD(IA)26-Aug-08 20:09 
simple example :- i have problem in this code how can i remove.
<body>
    <form id="form1" runat="server">
    <div>
        <asp:scriptmanager id="ScriptManager1" runat="server" xmlns:asp="#unknown">
        </asp:scriptmanager>
        <asp:updatepanel id="UpdatePanel1" runat="server" xmlns:asp="#unknown">
            <contenttemplate>
                 <asp:updatepanel id="UpdatePanel2" runat="server" childrenastriggers="False">
                    UpdateMode="Conditional">
                    <contenttemplate>
    <asp:fileupload runat="server" id="fu1" />
                    </contenttemplate>
                    <triggers>
                        <asp:asyncpostbacktrigger controlid="btn" eventname="Click" />
                    </triggers>
                </asp:updatepanel>
                 
    <asp:button runat="server" id="btn" text="ok" onclick="btn_Click" width="41px" />
            </contenttemplate>
        </asp:updatepanel>
           
    </div>
    </form>
</body>


protected void btn_Click(object sender, EventArgs e)
    {
        string str11 = fu1.FileName;
        if (fu1.FileName != "")
        {
            //string a = Convert.ToString(ViewState["emp_id"].ToString());
            string str = "~/images/photo/";
            str = Server.MapPath(str);
            str = str + "a" + ".jpg";
            //FileUpload2.SaveAs(str);
            //r1["emp_photo_url"] = "~/images/photo/" + a + ".jpg";
            //dt.update(tblco, "select * from tbl_product");

        }
    }


str11 have nothing while select a file and first update panel is also necessary for my code. please solve my problem? Big Grin | :-D

I will do my best?

AnswerRe: fil uploade with update panel of ajax Pin
Brij26-Aug-08 20:30
mentorBrij26-Aug-08 20:30 
GeneralRe: fil uploade with update panel of ajax Pin
UD(IA)26-Aug-08 21:45
UD(IA)26-Aug-08 21:45 
GeneralRe: fil uploade with update panel of ajax Pin
Brij26-Aug-08 22:01
mentorBrij26-Aug-08 22:01 
GeneralRe: fil uploade with update panel of ajax Pin
UD(IA)26-Aug-08 22:09
UD(IA)26-Aug-08 22:09 
AnswerRe: fil uploade with update panel of ajax Pin
Abhishek Sur26-Aug-08 21:24
professionalAbhishek Sur26-Aug-08 21:24 
GeneralRe: fil uploade with update panel of ajax Pin
UD(IA)26-Aug-08 22:01
UD(IA)26-Aug-08 22:01 
AnswerRe: fil uploade with update panel of ajax Pin
Tripathi Swati26-Aug-08 23:36
Tripathi Swati26-Aug-08 23:36 
GeneralRe: fil uploade with update panel of ajax Pin
UD(IA)27-Aug-08 1:18
UD(IA)27-Aug-08 1:18 
GeneralRe: fil uploade with update panel of ajax Pin
Tripathi Swati27-Aug-08 1:23
Tripathi Swati27-Aug-08 1:23 
GeneralRe: fil uploade with update panel of ajax Pin
UD(IA)27-Aug-08 1:39
UD(IA)27-Aug-08 1:39 
QuestionSave DataGridView data into Excel Sheet Pin
S.Aijaz26-Aug-08 19:30
S.Aijaz26-Aug-08 19:30 
AnswerRe: Save DataGridView data into Excel Sheet Pin
Tripathi Swati26-Aug-08 23:43
Tripathi Swati26-Aug-08 23:43 
GeneralRe: Save DataGridView data into Excel Sheet Pin
S.Aijaz26-Aug-08 23:57
S.Aijaz26-Aug-08 23:57 
QuestionRegular expression for 3 character alphanumeric string separated by _ Pin
Shaista Shafiq26-Aug-08 18:47
Shaista Shafiq26-Aug-08 18:47 
AnswerRe: Regular expression for 3 character alphanumeric string separated by _ Pin
nyeboy26-Aug-08 19:35
nyeboy26-Aug-08 19:35 
AnswerRe: Regular expression for 3 character alphanumeric string separated by _ Pin
manishmahajan26-Aug-08 19:51
manishmahajan26-Aug-08 19:51 
AnswerRe: Regular expression for 3 character alphanumeric string separated by _ Pin
Guffa26-Aug-08 20:17
Guffa26-Aug-08 20:17 

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.