Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:847378
More Search Options
RSS Available
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
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
zhixuen
on 10/28/2009
Re: How to make my control overlay embeded flash
Thanks Danish Ali , Problem resolved. Marvellous method.
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
zhixuen
on 10/28/2009
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.
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
zhixuen
on 10/27/2009
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 ยป
WindowsClient:
Tale of two tweets - VS beta - is it busy 70% of the time or is it brilliantly fast?
Mix Online:
Using the HTML5 Video and Audio Tag with Gestalt
WindowsClient:
Subclassing Shape (or more accurately, Path)
WindowsClient:
Having trouble deleting files? Try this
Channel 9:
Nick Baker: Xbox Architecture
TechNet Edge:
Thrive Live! Behavioral Interviewing: A behavioral answer is always the correct answer
ASP.NET:
PDC and Tech-Ed Europe Slides and Code
WindowsClient:
JScript location bar silliness
WindowsClient:
Anybody build a XAML parser in C or C++ yet?
WindowsClient:
Silverlight use, power and deployment keeps growing; so does WPF
ASP.NET:
T4CSS: A T4 Template for .Less CSS With Compression
WindowsClient:
JSON-P: An Elegant Hack
Channel 9:
Photosynth Update and New UI
Channel 9:
First Look: Streetside in Bing Maps
Channel 9:
Coding4Fun at PDC 2009
WindowsClient:
10 Must-See PDC 09 Sessions
Channel 10:
Photosynth Updated with New Release and New UI
Channel 10:
WindowsBlinds 7 Now Works with Windows 7
Channel 10:
Zune HD Launches New Colors
ASP.NET:
PDC09: ASP.NET MVC 2: Ninjas Still on Fire Black Belt Tips
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online