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:768759
More Search Options
RSS Available
Matching Posts
Re: How to get the selected row column2 data from Gridview
Hi! try this . int CompanyID; CompanyID=Gridview1.DataKeys[e.NewSelectedIndex].Values["CompanyID"].ToString(); Response.Redirect("xxx.aspx?CompanyID="&CompanyID) Hope this helps you.
Posted to
Data Presentation Controls
(Forum)
by
lavan
on 8/4/2009
Send Escape Sequence command to Thermal Printer
I am using the code at the following link to send raw data to a Thermal receipt printer. http://support.microsoft.com/kb/322091/en-us For the life of me I can not find an example of sending excape sequence characters to the printer. I am using the printer EPSON TM-T88IV Receipt s = chr(12) I am attempting the same thing in C# using the following: string s = ""; char ca = ' '; ca = (char)((int)12); s+= ca.ToString(); This has no effect however and is just ignored. Can somebody please
Posted to
Getting Started
(Forum)
by
lavan
on 7/2/2009
Re: How to download xml file - C# - ASP.net?
Hi try this code to download the file. Response.Clear() Response.ContentType = "text/xml" Response.AppendHeader("Content-Disposition", String.Format("attachment;filename={0}", XML_FileName)) Response.TransmitFile(Server.MapPath("MyFile.xml")) Response.End() Hope this helps you...
Posted to
Getting Started
(Forum)
by
lavan
on 5/22/2009
Re: Control 'rightsCheckBox' referenced by the ControlToValidate property of 'rightsCheckBoxValidator' cannot be validated.
Hi you have to specify ur javascript function name in the ClientValidationFunction property. Dnt use ClientValidationFunction="checked = true". write a script function to identify whether the checkbox is checked or not. specify that function name in the ClientValidationFunction property of ur custom validator. <asp:CustomValidator ID="rightsCheckBoxValidator" runat="server" ErrorMessage="This Requirement Must Be Met" ControlToValidate="rightsCheckBox"
Posted to
Web Forms
(Forum)
by
lavan
on 5/20/2009
Re: i am not able to download file . it shows exception
hi can u place the line Response.Clear() before Response.ContentType like this HttpContext.Current.Response.Clear(); HttpContext.Current.Response.ContentType = "application/octet-stream"; HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=" + System.IO.Path.GetFileName(filePath));
Posted to
Web Forms
(Forum)
by
lavan
on 5/20/2009
Re: i am not able to download file . it shows exception
Hi can u change ur DownloadFile code like this and check. Response.Clear(); Response.ContentType ="application/octet-stream"; Response.AppendHeader("Content-Disposition", "attachment; filename=" + System.IO.Path.GetFileName(filePath)); Response.TransmitFile(Server.MapPath(filePath)); Response.End(); still the problem remains means can u use HttpContext.Current.ApplicationInstance.CompleteRequest() instead of Response.End(). Hope this helps you..
Posted to
Web Forms
(Forum)
by
lavan
on 5/20/2009
Re: how to fill a dropdownlist after selection of another dropdownlist in vb.net with asp.net
hi Set AutoPostBack = "true" for the first Dropdown. Then in the first dropdown's SelectedIndexChanged event pass the first DropDown's SelectedValue to your DB query or Procedure to fill the second dropdown. Hope this helps you..
Posted to
Getting Started
(Forum)
by
lavan
on 5/20/2009
Re: max size javascript validation on multiline textbox behaves differently in IE and FF
Hi Instead of Javascript you can use the RegularExpression validator to validate the maximum character size in the MultiLine textbox. Try this. <asp:TextBox ID="txtSalutation" runat="server" MaxLength="10" TextMode="MultiLine" Height="50px" Width="200px"></asp:TextBox> <asp:RegularExpressionValidator ID="revtxtSalutation" runat="server" ControlToValidate="txtSalutation" ValidationExpression="
Posted to
Client Side Web Development
(Forum)
by
lavan
on 5/7/2009
Re: Linkbutton cannot work Mozilla Firefox 3.0.10
Hi Are using any Validation controls in the page?Can u check the validators of the page.?If any of the validator fires in the page, the server event of the LinkButton is not invoked. So if u dont want to validate the page while click your link button please set CausesValidation="False" for your link button. If you are not using any validators in your page, cn u please put a breakpoint in the LinkButton click event and check whether the server event is invoked or not.
Posted to
Web Forms
(Forum)
by
lavan
on 5/7/2009
Re: required field validater on drop down list
Hi Haansi, you have to set Initial Value for the RequiredFiled Validator <asp:DropDownList ID="ddlItems" runat="server" > </asp:DropDownList> <asp:RequiredFieldValidator ID="rfvddlItems" runat="server" ControlToValidate="ddlItems" ErrorMessage="Please Select" InitialValue="0"></asp:RequiredFieldValidator> Hope this helps you...
Posted to
Web Forms
(Forum)
by
lavan
on 5/7/2009
Page 1 of 18 (171 items) 1
2
3
4
5
Next >
...
Last »
ASP.NET:
Death to confirmation dialogs with jquery.undoable
Channel 9:
E2E: Brian Beckman and Erik Meijer - Co/Contravariance in Physics and Programming, 1 of 2
TechNet Edge:
Windows Server 2008 R2 Quick Look #3 - PowerShell V2
ASP.NET:
2009 Blogged - Greatest Hits
WindowsClient:
2009 Blogged - Greatest Hits
Channel 9:
Nikolaj Bjørner and Leonardo de Moura: The Z3 Constraint Solver
Channel 9:
MEF & Silverlight 4 Beta - Part 2, Imports & Exports
Channel 9:
MEF & Silverlight 4 Beta - Part 1, Introduction
WindowsClient:
The (Near) Final Word on Multi-Monitor Taskbars for Windows 7 - Ultramon vs. DisplayFusion
WindowsClient:
Looking back at 2009, and forward to 2010
Silverlight:
Polling Video – A Viable sub-second alternative?
TechNet Edge:
Windows Server 2008 R2 Quick Look #2 - Active Directory Recycle Bin
Channel 10:
I'm a Windows 7 PC Themes
Channel 10:
24 Years of Windows Box Art
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online