Search

You searched for the word(s): userid:847378

Matching Posts

  • Re: Unique Randomize number

    Thanks for the prompt reply. I was thinking to use GUID but the output is too long for me. Is the output can be shorter? The asp example from CodeAve is suited to my situation but the problem is if the generated random number is many. The timeline taken will be very long?
    Posted to Getting Started (Forum) by zhixuen on 11/25/2009
  • Re: Unique Randomize number

    Thanks all, The best answer for me is this http://aspnet.4guysfromrolla.com/articles/101205-1.aspx (GUID) but anyway the suggestion from you guy also helpful for me I have marked its as answer also. Thanks :-)
    Posted to Getting Started (Forum) by zhixuen on 11/25/2009
  • Unique Randomize number

    Hi all, I've been tasked to develop a function to generate maybe 5000 Random number but not duplicate. In this case, I will use Randomize function to generate random number but it could be duplicated. So I decided to use GUID by the format is too long for me. Hence, any suggestion could solve my problem? Could I generate shorter GUID? Thanks a million :-)
    Posted to Getting Started (Forum) by zhixuen on 11/24/2009
  • Server.MapPath not working

    Hi All, I wrote a function to allow system copy the file from client PC to Server. It is working fine in my localhost. However, When I transported its to server and test from client PC. It is not working and no error prompting to me. How to solve my problem? Here is my code. try { string fn = System.IO.Path.GetFileName(lsUpload.Items[lsCount].Text.ToString()); string saveLoc = Server.MapPath("upload") + "\\" + fn; ; System.IO.File.Copy(lsUpload.Items[lsCount].Text.ToString(),
    Posted to Web Forms (Forum) by zhixuen on 11/3/2009
  • Re: How to make my control overlay embeded flash

    Thanks to your prompt reply. I had tried your method but It couldn't solve my problem. Below is my code. <table border="0" width="100%" class="MyTable" > <tr> <td ><img src ="DesignStore/arrow-Right.gif" /> <%# DataBinder.Eval(Container.DataItem, "News_title")%> <asp:ImageButton ID="imgbtnMessage" runat="server" ImageUrl='<%# DisplayMessage(Eval("Message"))%>' ImageAlign
  • Re: How to make my control overlay embeded flash

    Thanks Danish Ali , Problem resolved. Marvellous method.
  • Re: Unabled to retrieve the file from database

    Thanks PeteNet, I was refering the solution you have provided. I suspected I get the error on response.binarywrite() this line. By using ajax updatepanel with partially postback it won't postback entire page itself. Then the page could generate some invalid HTML markup I guess. Thus, I hit my first error Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response
    Posted to Web Forms (Forum) by zhixuen on 10/27/2009
  • Re: Unabled to retrieve the file from database

    I have found the solution. Thanks everyone who have contributed to help me. I added EnableEventValidation ="false" ValidateRequest ="false" @ Page Language ="C#" Masterpagefile ="~/MasterPage.master" CodeFile ="LastestNews.aspx.cs" Inherits ="LastestNews" EnableEventValidation ="false" ValidateRequest ="false" %> And also added < Ajax : PostBackTrigger ControlID ="lvwAttachment" /> to my listview updatepanel
    Posted to Web Forms (Forum) by zhixuen on 10/27/2009
  • How to make my control overlay embeded flash

    Hi All, Within my page has a flash control on the center of page. When I click on a button within the page, my animationextender table will be moved to the center and overlaid the flash control. However I couldn't achieve this because the flash control always on the front. Could someone help me to solve my problem? Thanks a million.
  • Unabled to retrieve the file from database

    Hi All, I would like to open a file from database binary field. I have tried to use the following code. protected void lvwAttachment_OnItemCommand(object sender, CommandEventArgs e) { int index = Convert.ToInt32(e.CommandArgument); ListViewItem lvwItem = this.lvwAttachment.Items[index]; HiddenField hdNewsIndex1 = (HiddenField)lvwItem.FindControl("hdNewsIndex1"); HiddenField hdNewsID = (HiddenField)lvwItem.FindControl("hdNewsID"); string strQuery = "select Attachment,FileName
    Posted to Web Forms (Forum) by zhixuen on 10/26/2009
Page 1 of 13 (130 items) 1 2 3 4 5 Next > ... Last ยป