13,153 Topics

Member Avatar for
Member Avatar for mia_islina

I have created a CSV file on the server and want to send it to the user using the following code: [code] Dim strPhysicalPath As String strPhysicalPath = Server.MapPath( "CSV/" & PathVirtual) Dim objFileInfo As System.IO.FileInfo = New System.IO.FileInfo(strPhysicalPath) Response.Clear() Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("Content-Disposition", "attachment; filename=" & objFileInfo.Name) Response.AddHeader("Content-Length", objFileInfo.Length.ToString()) …

Member Avatar for mia_islina
0
168
Member Avatar for kmose

I'm confused as to when each comes into play and what their exact function is. I'm reading an article that claims that a TextBox's internal Text property would have this getter/setter method. [CODE] public string Text { get { return (string)ViewState["Text"]; } set { ViewState["Text"] = value; } }[/CODE] The …

Member Avatar for kvprajapati
0
74
Member Avatar for denmarkstan

I just need a resource(tutorial) to learn how to develop a flashy and well content website.Could anyone direct or give me please. i have been reading ASP.net 2.0 and was trying to build website that is so flashy. When i compare my effort with anyone of flashy standared i become …

Member Avatar for kvprajapati
0
115
Member Avatar for mandar2886

HI im new to asp.net and i want help when click insert button same record is inserted instead of new record. Pls reply asap as my project is based on this [code] using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; …

Member Avatar for kvprajapati
0
127
Member Avatar for kifayat128

I made a web form in asp.net and I am using loop to add button on the page. But problem is this, I'm not able to handle event of it. Can any one help me.

Member Avatar for kvprajapati
0
139
Member Avatar for Mortinhio

Hello Friends I want to ask about the purpose of ASP.NET Language and for whom it has been designed,,, And Thanks:)

Member Avatar for kvprajapati
0
41
Member Avatar for subhankar02dey

I have a listbox in which there are 100 items. The items of the listbox is being populated from database. Now after selecting an item, if I click any button(sending request to server), then though the selected listbox items is kept selected, but if I had selected say 70th Item, …

Member Avatar for Freon22
0
107
Member Avatar for patibikash

I have a text file having randomize numbers. ->first read the file in asp.net ->then count how much time the number will repeated in that text file ->and also display the time taking to read the file Please help if any body has the answer.

Member Avatar for searchec
0
112
Member Avatar for erum

ca any one correct my insert query in database [code] Dim hotel_book As String = "insert into hotelbooking (Userid, hotel_requirement_Types, singleroom, single_no_room,doubleroom,double_no_room) " & _"VALUES (" & userid & ", '" & ckchecked.Text & "' , & singlecheck & , & no_single_room & , & doublecheck & , &no_double_room & …

Member Avatar for kvprajapati
0
89
Member Avatar for gillivt

I have a form (testform.html)as follows: [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>test</title> </head> <body> <form id="form1" method="post" action="datareturn.aspx" > <input type="text" id="FoxyData" name="FoxyData" /> <input id="Submit" type="submit" value="submit" name="submit" /> </form> </body> </html> [/CODE] When I enter data into the form field and …

Member Avatar for gillivt
0
262
Member Avatar for SurveyTool

I'm making a survey tool. Each respondent will be asked to answer questions on (for example) cakes. The number and types of cake will be different for each respondent. The format of the survey will be saved in a file called [I]survey.xml[/I]. So the survey may be like the following: …

Member Avatar for SurveyTool
0
146
Member Avatar for dmatos

Hello All I'm working with a gridview control, and i chose to code it my self instead of using the wizard microsoft provides. So i have two questions: 1- Can i use stored procedures to work with parameters so i can send some additional data to the database? 2- Can …

0
44
Member Avatar for CroCrew

Hello all, Thanks for looking at my post and thank to anyone that provides me with the help I am looking for. This is what I am trying to do. From the parent page have a few links that would do a postback and based on the link chosen a …

Member Avatar for shine_jose
0
125
Member Avatar for AMetnik

[CODE] private void displayWith1Criteria(string column, string value) { Console.WriteLine("entering _1_ display method"); dbcontent = new DBtestEntities(); var studienummerQuery = from members in dbcontent.Medlemmer.Include("Retninger") where column == value orderby members.Fornavn select new { Studienr = members.Studienummer, Fornavn = members.Fornavn, Efternavn = members.Efternavn, Email = members.Email, Studiested = members.Studiested, Betaling = members.BetalingsType, …

Member Avatar for AMetnik
0
234
Member Avatar for shiyamalapandi

hi this is shiyamala .i have full project in asp.net.i bought this project by another .how shall i run this.please give the steps

Member Avatar for kvprajapati
0
32
Member Avatar for Trinominal

Hi, For .NET developers who uses unit tests to test their code, are you suffering from regression (i.e., unit tests which fails on a regular basis)? If so, how do you face these issues? Regular debug sessions to find the problem each time a test is being failed? Some other, …

0
97
Member Avatar for AMetnik

[CODE] var studienummerQuery = from members in dbcontent.Medlemmer.Include("Retninger") orderby members.Fornavn select members; foreach(var a in studienummerQuery) { Console.WriteLine(a); } [/CODE] Thats my code, wonder why it doesnt work.. My tables are: Medlemmer Retninger

Member Avatar for AMetnik
0
135
Member Avatar for mca.narender

Hi, I am developing a window application that uses webservice for database transcation. On other system its work file and debug successfully, i am able to step in webservice function. One thing that i want tell you this web service i deploy on visual studio's local webserver for testing. Only …

0
61
Member Avatar for mr.devel

hi for all i have two stored procedure to retrive data from data base one before one week and the other before two week [CODE]ALTER PROCEDURE beforeweek AS select * from files where [date] < dateadd(wk,-1,getdate()) [/CODE] and the other [CODE]ALTER PROCEDURE beforeweek AS select * from files where [date] …

0
64
Member Avatar for wade2462

I want to be able to have a Textblock set to a certain width and height so it can contain two lines of 36pt font. I have accomplished this with word wrap, but it can still overflow. Is there anyway to make the font size shrink when there is an …

0
107
Member Avatar for remya1000

i'm using VB \ ASP.NET. i'm trying to display some values in Gridview. but i don't know how many columns i need to display. at run time only i will come to know how many columns i need to display. it depends up on the values from Database. so i'm …

0
70
Member Avatar for SBA-CDeCinko

I have a ScriptManager tag in my master template. This causes no issue for visitors who have Javascript disabled. As soon as I add EnableHistory="true" to support the saving of history points, Javascript disabled visitors get an error. How can I support both types of users?

0
59
Member Avatar for erum

i have textbox in repeater and i want to validate it to accept numbers only i have code like this [CODE]<asp:Repeater ID="Repeater1" runat="server"> <HeaderTemplate> <table border="1" width="100%"> <tr> <th>id</th> <th align=left>Room Categories</th> <th>single</th> <th>Double</th> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td width="5%"> <asp:Label ID="Label3" runat="server" Text= '<%# Container.DataItem("packageid")%>' /></td> <td> <asp:CheckBox ID="chk_packages" …

Member Avatar for croker10
0
179
Member Avatar for kanuri1

hi frnds,,,, here i want to access the data base and showing in the grid view without help of datasourse it will shows the error, the error is "The IListSource does not contain any data sources"" here my coding is as follows..... Protected Sub Page_Load(ByVal sender As Object, ByVal e …

Member Avatar for jbisono
0
85
Member Avatar for kanuri1

how to clear a textbox when enter incorrect than correctdata in integer format then at a time to disply validation in asp.net by using vb.net

Member Avatar for crishjeny
0
56
Member Avatar for bharanidharanit

Hello sir, I am using 2 dropdownlist on my page. Those 2 are bounded to AccessDataSource. Initially dropdownlist2 is hidden. Wen i select some values on dropdownlist1, the other must be visible. Thankyou

Member Avatar for crishjeny
0
72
Member Avatar for mIssy_ricco

Hi all. i've been wanting to create a validation that user has to key in for e.g: 10/2009. i want it to have the number and the '/' char. i tried "^\d+$" which is only for numbers. ".*[/].*" which is only for '/' "^[0-9a-zA-Z]+$" which doesnt seem to work. can …

Member Avatar for crishjeny
0
99
Member Avatar for kanuri1

hi frnds i had got a problem, i want to increase the serial number automatically when page is loaded and it will be inserted into the database at every time when the page is loaded ....... here my coding in page load event is given below,,,,, [code] Protected Sub Page_Load(ByVal …

Member Avatar for crishjeny
0
289
Member Avatar for unknowndevil41

Hi friends i want to create an login window. It should be loaded when an login button is clicked. What i want to do is when my login window open background of the website should get blured. In other ways i want to create a window same as daniweb.com when …

Member Avatar for crishjeny
0
72
Member Avatar for kanuri1

hi frnds, i had got a problem,,,,,,, when iam retriving the data from database uising an condition it will shows the data appropriately... if the conditional value not in the database it will doesnot show any error....... here iam acessing the data from database using serial number condition,,,,, if the …

Member Avatar for crishjeny
0
99

The End.