Quantcast
Channel: Web Forms
Browsing all 23244 articles
Browse latest View live

Listview to excel mso-number-format:\@; dont work

Hello!I want to export listview to Excel. It is necessary that the Excel  recognize first column as the text. I will make so, but it don't work<style type="text/css"> .text {mso-number-format:\@;...

View Article


SQL stored procedures Try/Catch and Commit/Roll back transactions

Is it valid to put a Commit Transaction statement right above the 'End Try' and then a Rollback Transaction statement right above the 'End Catch'.

View Article


Error: Instance property 'DateTime' is not defined for type...

I am getting this below error when i try to sort the asp.net gridviewError: Instance property 'DateTime' is not defined for type 'GRIDVIEWSORT.LoginInfo'Code:private List<LoginInfo> Sort(string...

View Article

Getting Error in Rowcommand Event :Index was out of range. Must be...

hi..getting error here int addid = Convert.ToInt32(gvImages.DataKeys[rowindex]["CategoryID"]); that "Error:Index was out of range. Must be non-negative and less than the size of the collection....

View Article

downloading file from server/localhost to client's computer

I have a file in server's "data" folder. How can I download the file from the server and save it in client's desktop.

View Article


How to create add price , multiply by quantity and minus discount before...

Am trying to create a sales web application that will add sells price and multiply with the quantity and also check their is any discount, if yes the discount will be minused from the total sells and...

View Article

validate grid view itemtemplate

Hi..I'm using this tutioralhttp://www.aspsnippets.com/Articles/Adding-Dynamic-Rows-in-GridView-with-DropDownLists-in-ASP.Net.aspxLets consider user slelectItem1     Item2    Item3 on first row now user...

View Article

How to resize the web page automatically based on user's web browser screen...

Hi All,I have created a web page, different users have different screen resolution like 800 X 600, 1280 X 1024 etc.,Is there any way where it detects automatically  and fits the contents according to...

View Article


how can i get control inside the user control from the master page or page ?

hi all1. i ahve an master page called "Site2.Master".2. i have an user control called "US1".3. i have an page called "webform2.aspx" and it use the master page "Site2.Master" and i have add the user...

View Article


timer tick fire only one time dute to [Response.OutputStream] is optoin to...

protected void Timer1_Tick(object sender, EventArgs e) { Bitmap bmp = new Bitmap(150, 400); Graphics g = Graphics.FromImage(bmp);Pen blackPen = new Pen(Color.Red); y -= 100; ; height += 50; RectangleF...

View Article

Set EnableClientScript property of Validation Summary control using Javascript

Hi,I want to set the EnableClientScript property of the validationsummary control using javascript.My intention is to keep the validation messages in the validationsummary even after the postback.Note:...

View Article

Insertion

Good day all,I am trying to get this logic done but facing some problem.The logic is that at a click of a button i select all student who are in a particular class from the students table and insert...

View Article

how to get value that is written in client side in serverside

HI, I am assigning some value in the client side to a label. I am trying to access the label value from server side. that label text is empty. How to access the variable. the page is inside master...

View Article


IFrame's body doesn't render its content

Dear Dotneter,Now i am facing a problem.  Am using IFrame in a page. While working in local machine it displays content within. While moving to live it doesn't render it's body content.Just showing an...

View Article

Handling multiple formview's update commands in one page

I'm having trouble managing multiple formview's update methods on a single page. I have 2 formviewsone for customer basic info on a jquery tabone for customer address on a jquery tabBoth formviews are...

View Article


how to avoid lose session?thank u very much

hi   i 'd like to ask for help.  sometimes,when the page is reloaded,or sessions are transfered between webpages,the sessions are lost(they become null)  my web config is like that:   <sessionState...

View Article

Asp.net url Re-writing

hi,I want to know about asp.net url re-writing if any one know abt tis topic share me...Any sample project soure code available pl send meThanks.

View Article


Add Service Refrence Error

Hello guys, i am getting this when  i am adding a service refrence to my web app. please help me to solve it.There was an error downloading...

View Article

when use Asp.net net Url ReWriting Ajax WebMethod wont Called

Hi,m getting url like http://localhost:10869/Customer$.ajax({ type: "POST", contentType: "application/json", data: "{'Type':'" + type + "'}", url: "CustomerMaster.aspx/getSelectList",//when m using...

View Article

Why dont work my code behind that call an alert?

Hy,I have read many threadsandtried in every waybutI can not findthe solutionto invoke a alertfrom my code.At some pointI have a functionpublic void Update () { if (isSaved) { } else { Response.Write...

View Article
Browsing all 23244 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>