13,153 Topics

Member Avatar for
Member Avatar for derozza

Dear all. I need help regarding on my error.. this is the sample code: [CODE] Private Sub GetDetails(ByVal id As String) Dim conString As String = (ConfigurationManager.ConnectionStrings.Item("ItemListing").ToString) Dim objConnection As New MySqlConnection(conString) objConnection.Open() Dim sdr As MySqlDataReader Dim sSQL As String = " SELECT i.SuppCode,s.SuppName,s.telno,s.Faxno,s.email,s.Salesman,s.Mobileno,s.add1," & _ " i.masterefno, i.invoicerefno,a.remarks, …

Member Avatar for CrappyCoder
0
182
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
170
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
78
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
117
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
131
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
141
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
43
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
109
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
117
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
94
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
264
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
153
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
46
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
126
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
246
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
34
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
98
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
136
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
63
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
68
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
109
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
71
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
61
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
180
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
87
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
59
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
73
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
101
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
295
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
74
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
103
Member Avatar for kanuri1

hi how i can give session expairy time (about 5 min) in vb.net in pageload event,, pls give me code,,,

Member Avatar for crishjeny
0
102
Member Avatar for Naters_uk

I am using aspx.vb to create a login page. I would like to create a remember me cookie using a checkbox that will help to remember user ID but will also allow it to be destroy if a different user ID wants to log in with the same computer, but …

Member Avatar for crishjeny
0
956
Member Avatar for mshravs

i have a problem in showing the data in the other page which is saved from one page and should be shown in the other page after immediately saving it. can anyone tell how do it through form collection here is the code [CODE] Protected Sub Page_Load(ByVal sender As Object, …

Member Avatar for crishjeny
0
86
Member Avatar for kdcorp87

[CODE] OleDbDataAdapter o = new OleDbDataAdapter("select * from tblExam1", conn); DataSet ds = new DataSet(); o.Fill(ds, "tblExam1"); DataRow r = ds.Tables["tblExam1"].NewRow(); r["exam1ID"]=324; r["patID"] = patid; r["ypsos"] = 32; ds.Tables["tblExam1"].Rows.Add(r); ds.AcceptChanges(); [/CODE] no error message. execute code normally, but row did not inserted in db what i m missing? its access …

Member Avatar for crishjeny
0
120
Member Avatar for Pari13

Dear All, Have good day, I am trying to attatch file like yahoomail attatchement ,it means displaying name of file and Remove link after Button_click event fire. [CODE] protected void Page_Load(object sender, EventArgs e) { LinkButton1.Visible = false; label2.Visible = false; } [/CODE] [CODE] if (FileUpload1.HasFile) try { FileUpload1.SaveAs("e:\\parimal\\" + …

Member Avatar for crishjeny
0
470
Member Avatar for boonfoo

Actually i am trying to find the author of the article in this link. [url]http://authors.aspalliance.com/articles/dynamicbuttons.aspx[/url] But i failed as the provided email address is invalid. So i hope here can find the solution for it. Here it goes from the article exempted source code show on below -------------------------------- [code] Sub …

Member Avatar for crishjeny
0
239
Member Avatar for vvashishta

Hi all.. I need to make my dropdownlist disabled (none can change value or it should be read only)..which property should I use as readonly for dropdownlist is not working for me.. PHMO..

Member Avatar for crishjeny
0
2K
Member Avatar for kanuri1

hi iam giving a value in text box as " 2010 - 1 " insted of 2010-1 it shows error, please give me the code to avoid blank spaces within a string as given above, iam using asp.net with vb.net please help me.......

Member Avatar for crishjeny
0
293
Member Avatar for priyanka_2687

hi all.........:) actually im new to .net.. can we have routing in asp.net 3.5???? if yes, how?

Member Avatar for crishjeny
0
306
Member Avatar for kanuri1

hi i wants to create an dll file for removing blankspaces in a given string.......... here iam writing the code but it was not working..... please give me the correct code.... here iam using asp.net with vb.net [CODE]Namespace fillblank Public Class Class1 Private Sub blankspces() Dim a Dim done a …

Member Avatar for crishjeny
-1
261
Member Avatar for Sarama2030

hi guys!! been thinking about learning some server-side scripting in ASP. is there any use in investing in asp when with the emergence of asp.net? to paraphrase it what is the future of asp at microsoft, will it be there a little bit longer or is a dying horse!! one …

Member Avatar for Sarama2030
0
180
Member Avatar for JMC31337

its just a prank.. but shows the recatngle arrays and falling pixels in a 25 x 25 region snapshot of yur current screen after 10seconds... then creates a form and further cascades the pixels.. any key press will end it.. but its autostart will wait another 10 seconds and cascade …

Member Avatar for JMC31337
0
121
Member Avatar for stowaway

Im *trying* to design a webpage for my work (a haulage company). I want our drivers to be able to plot out their trip (same way you can do on Google maps) and then for people to be able to log in and say they are in a certain post …

0
44
Member Avatar for kieky

hi all.. i need your help.. do u know how to display image according to extension of file with C#? ex : .doc -> image microsoft word, .pdf -> Image PDF, etc thanks before...

0
65
Member Avatar for Dajer

Hi friends. I have a GridView which has linkbutton column.I Want to change the Text of this linkbutton when user click on it.But when I change the text of clicked linkbutton cell,It will be convert to the label!!!!!!!!! What's wrong?what should I do? THX.

Member Avatar for Dajer
0
91
Member Avatar for opspl_programme

Hi Everyone ! I have 2 DropDownList controls inside an UpdatePanel. The first is a dropdown for [B]Country[/B] while the second is for [B]State[/B]. I have set the properties of Country as AutoPostBack="True", OnSelectedIndexChanged ="PopulateState". Selecting a different Country fires the [I][U]PopulateState[/U][/I] function causing the the State to populate itself …

Member Avatar for Freon22
0
2K
Member Avatar for readbanana

I am trying to upload images to the ftp. I need to have it in a compressed folder called by a specific name and then upload that folder to a specific directory. Each time I try, I get an error The remote server returned an error: (550) File unavailable This …

0
76
Member Avatar for shanmugaraj.ind

What is the connection string to write for importing mixed data from excel sheet to data grid My problem is, I have rows like 1 2 3 4 5 6 7 8 9 a b c d in excel sheet.But when I imported these rows only 1-9 imported succesfully but …

0
88
Member Avatar for selicon.valley

i m developing website in asp.net n page name is 1.aspx i want to show records in table form but my requirement is that it should be hyperlink username when ever visitor clicks on that.next page will come n the username passed to another page <td><%#Container.DataItem("[COLOR="DarkRed"]user_name[/COLOR]")%> </td>

Member Avatar for peachy0685
0
138

The End.