5,346 Posted Topics

Member Avatar for collegegirl7

Try to implement this, [code] Dim tx as TextBox()={TextBox1,TextBox2,TextBox3,Textbox4} Dim dt as Date=Date.Parse(gdate) Dim dy as Integer = dt.Day Dim cell as String="" If dy > 26 Then cell = "A" & Chr(64 + dy Mod 26) Else cell = Chr(dy + 64) End If For i As Integer = …

Member Avatar for collegegirl7
0
207
Member Avatar for mansi sharma

Read this article - [URL="http://www.cryer.co.uk/filetypes/"]http://www.cryer.co.uk/filetypes/[/URL]

Member Avatar for kvprajapati
0
951
Member Avatar for telepip

[b]>.is there anyway to read the OutputStream of a currently running process?[/b] See this - [url]http://www.daniweb.com/forums/thread94882.html[/url] Take a look at a [URL="http://msdn.microsoft.com/en-us/library/system.diagnostics.process.standardoutput.aspx"]MSDN[/URL] Page.

Member Avatar for kvprajapati
0
1K
Member Avatar for LJames

[b]>GridView/DetailsView Position on Screen[/b] Two ways: 1. Place/Add that control into another container control that has been positioned at absolute co-ordinates. 2. Use modal dialog to show the content of that control.

Member Avatar for LJames
0
139
Member Avatar for VibhorG

[b]>How can I load only those states(in combobox2) that corresponds to the country that is selected (in combobox1).[/b] SELECT ... WHERE clause. [code=text] select [states] from tableName where [country]=@country [/code]

Member Avatar for VibhorG
0
103
Member Avatar for stryker4526

[b]>Basically I'm confused on how I should do this, as our teacher didn't go over StreamReader.[/b] Here is [URL="http://msdn.microsoft.com/en-us/library/system.io.streamreader%28VS.100%29.aspx"]StreamReader[/URL] class. Open a file and use ReadLine() method. [code] StreamReader sr=new StreamReader("file.txt"); TriviaQuestion obj=new TriviaQuestion(); .... [/code]

Member Avatar for jonsca
0
111
Member Avatar for akamini

[code=text] str="SELECT * FROM tblBookings WHERE Lessondate>=#" & BookingsWeekStart & "# And Lessondate<=#" & BookingsWeekEnd & "#" [/code]

Member Avatar for akamini
0
133
Member Avatar for swenzy

Password is reserved of Ms-Access. [code] cmd = New OleDbCommand("update [login] SET [password]=@password where [username]=@username", con) [/code]

Member Avatar for kvprajapati
-1
73
Member Avatar for oceantrain

[b]>I've looked everywhere and cannot find any ideas on how to add this datetimepicker control with functionality. Any idea would be really helpful.[/b] Read danny's (ddanbe) [URL="http://www.daniweb.com/forums/thread224588.html"]answer[/URL].

Member Avatar for kvprajapati
0
217
Member Avatar for JCel

[b]>Now i don't know how to code for parsing...[/b] Take a look at String class methods, especially Split method..

Member Avatar for ddanbe
0
126
Member Avatar for Raged

Add following lines into UpdateDa method. [code] connection.ConnectionString = connString sql = "select * from " + table DAHospital = New OleDbDataAdapter(sql, connection.ConnectionString) [/code]

Member Avatar for Raged
0
195
Member Avatar for dre-logics
Member Avatar for blondie.simon
Member Avatar for lewashby

Double Thread - [url]http://www.daniweb.com/forums/thread260118.html[/url] Thread Closed.

Member Avatar for kvprajapati
-1
101
Member Avatar for rapture

[b]>I don't know much about expression web..[/b] From [URL="http://en.wikipedia.org/wiki/Microsoft_Expression_Web"]Wiki[/URL] : Microsoft Expression Web, code-named Quartz, is a WYSIWYG HTML editor and general web design program by Microsoft. You cannot develop ASP.NET web applications with Expression Web.

Member Avatar for rapture
0
140
Member Avatar for lein.o16

[b]>how can i save the path of the picture i've browsed[/b] Use OleDb provider classes, [code] .. Dim filePath as String = "SampleFolder\File.Ext" String insQ="Insert Into TableName(id,path) Values (@id,@path)" ... Dim Cn as New OleDBConnection("put_your_connection_String") Dim cmd as new OledbCommand(insQ,cn) cmd.Parameters.AddWithValue("@id",1) cmd.Parameters.AddWithValue("@path",filePath) cn.Open() cmd.ExecuteNoneQuery() cn.Close() [/code]

Member Avatar for Max D
0
222
Member Avatar for 3Dees

[b]>Can the same algorithm be used in C++?[/b] Yes. If you have any question, start your own thread. Thread closed.

Member Avatar for kvprajapati
0
1K
Member Avatar for Pari13

You can not add server control using Response.Write method. Use hyperlink, [code] protected void Page_Load(object sender, EventArgs e) { if(Request["file"]!=null){ string path = MapPath("~/upload/" + Request["file"]); File.Delete(path); } DirectoryInfo dInfo = new DirectoryInfo(Server.MapPath("~/upload")); FileInfo[] FilesList= dInfo.GetFiles(); int i = 1; foreach (FileInfo fi in FilesList) { Response.Write("<h2>" + i + …

Member Avatar for kvprajapati
0
95
Member Avatar for Karthik_sanjay

[b]>How can i export the data from text file to datagridview.[/b] Learn [U]System.IO[/U] classes. Read the forum rules. You need to show effort, and what better way than posting the code that you have tried so far?

Member Avatar for kvprajapati
0
36
Member Avatar for hrash.patil

[b]>Please help me i am beginner in asp.net[/b] Before commencing the journey to learn ASP.net, you might want to consider following facts. [LIST=1] [*]You must have a decent understanding of HTML, JavaScript, and CSS. [*]You need to understand the role of Http(Web) Server,Application server, web-browser and Http request (get/post) and …

Member Avatar for kvprajapati
0
80
Member Avatar for dawsonz

[b]>I've used the HTML input (file)[/b] Add runat="server" attribute to this html tag, [code] ... <input type="file" id="file1" runat="server"/> ... [/code] and use file1.PostedFile.InputStream property to read the content of uploaded file in code-behind.

Member Avatar for kvprajapati
0
73
Member Avatar for vasanth.kanna
Member Avatar for muthu1802

[b]>I need code to connect a remote server...[/b] [code] System.Data.SqlClient.SqlConnection cn; cn=new System.Data.SqlClient.SqlConnection("put_connection_here"); //Test the server connection cn.Open(); cn.Close(); [/code]

Member Avatar for kvprajapati
0
45
Member Avatar for akamini

[code] If target2 = "Date" Then sql = "SELECT * FROM tblBookings WHERE LessonDate =#" & target4 & "#" [/code] OR [code] If target2 = "Date" Then sql = "SELECT * FROM tblBookings WHERE LessonDate = '" & target4 & "'" [/code] PS: You must have to use parametrized query. …

Member Avatar for akamini
0
194
Member Avatar for eldhoksuresh

[b]>code executed fine..but i can't see the file man.txt anywhere..[/b] Correct me if I am wrong. OP wants to create a file using java.io.File class. There are two instance methods namely - createNewFile() and createTempFile() which create a file. Following code creates a new [URL="http://java.sun.com/javase/6/docs/api/java/io/File.html"]File[/URL] instance by converting the given …

Member Avatar for eldhoksuresh
0
85
Member Avatar for sarvanhsr

Do not put extra blanks before and after the field, [code] string strqry = "UPDATE Registration SET Password = '" + Text2.Text + "', PhoneNo = '" + Text3.Text + "', Email = '" + Text4.Text + "' WHERE (UserName ='" + Text1.Text + "')"; [/code] Do not form SQL-query …

Member Avatar for kvprajapati
0
89
Member Avatar for Srinivasa007

Happy Sivaratri to you. [b]>I'm trying all different ways but it doesn't work.[/b] [code] bool changed = false; foreach (ListItem l in DropDownList1.Items) { if (!DropDownList2.Items.Contains(l)) { changed =true; } } if (changed) // else // [/code]

Member Avatar for kvprajapati
0
65
Member Avatar for kvkumar

[b]>how to generate crystalreports like this using dataset[/b] Steps: 1. Create & configure DataSet. 2. Add crystal report into your project.

Member Avatar for kvprajapati
0
73
Member Avatar for kvkumar

[b]>how to use this in csharp.net.[/b] [code] object oh=Activator.CreateInstance(Type.GetTypeFromProgID("Sap.logoncontrol.1")); [/code]

Member Avatar for kvprajapati
0
42
Member Avatar for Nanthini04

[b]>Is this possible..or else is it possible with WMI scripting..[/b] It is possible. Use WinAPI (GetDiskFreeSpaceEx) or WMI.

Member Avatar for kvprajapati
0
42
Member Avatar for RAMAN2233

[b]>I am getting the following error -ASP.mainmenu_aspx' to 'System.Web.UI.WebControls.ImageButton[/b] Unable to cast. Please post your code.

Member Avatar for kvprajapati
0
44
Member Avatar for Tank50

[b]How I stop asking user name and password in every time.[/b] Configure the reportSource object, [code] CrystalReportSource1.ReportDocument.SetDatabaseLogon("username", "password","server_instance","database_name"); [/code]

Member Avatar for kvprajapati
0
97
Member Avatar for dontknowwhat

I think some more information is required so that the best course of action can be taken.

Member Avatar for kvprajapati
0
28
Member Avatar for psathish2

> any one solve the problem and code I don't think that there is any problem with code you posted here except you didn't use code-tags. > i have 2 image button. Learn to set CommandName property. <asp:CommandField ButtonType="Image" SelectImageUrl="images/icon1.gif" ShowSelectButton="True" CommandName="Action1" /> <asp:CommandField ButtonType="Image" SelectImageUrl="images/icon2.gif" ShowSelectButton="True" CommandName="Action2" /> > …

Member Avatar for kvprajapati
-1
366
Member Avatar for COKEDUDE

You must read [URL="http://www.daniweb.com/forums/post1067262.html#post1067262"]Narue's[/URL] post about format specifiers in C.

Member Avatar for COKEDUDE
0
82
Member Avatar for K-Mos

[b]>I need to refresh one div in my HTML page and not the entire page, is this possible?[/b] Yes it is possible. Read more about [URL="http://en.wikipedia.org/wiki/Ajax_%28programming%29"]AJAX[/URL].

Member Avatar for MCDeveloper
0
61
Member Avatar for MARKAND911

[b]>How to insert a window Service in ScheduledTask using C#?[/b] [URL="http://ss64.com/nt/at.html"]AT[/URL] Command. Have a look at this [URL="http://www.dotnetspider.com/resources/869-How-schedule-task-using-windows-Services.aspx"]article[/URL].

Member Avatar for kvprajapati
-1
116
Member Avatar for Audux

[b]>The use of destructor is to delete or release any memory that has been allocated.[/b] Nope. It is a method which is automatically invoked when the object is destroyed.

Member Avatar for mrnutty
0
81
Member Avatar for bombasstic

Can you maybe provide some more information about what it is you are trying to do? [b]>division of 2 integer[/b] Use [b]\[/b] integer division operator.

Member Avatar for apegram
0
83
Member Avatar for izyrider

[b]>I would love to use a control array, but VS2008 doesn't like the idea.[/b] VB.NET has better approach than VBA. You may create an array of object (or Generic List, even a better way than array) of CheckBox class. [b]>what's the best (?? cleanest, neatest, most-elegant, most-maintainable ??) [/b] CheckBoxList …

Member Avatar for izyrider
1
87
Member Avatar for mith_cool

I think you should use logname, [code] ImageUrl='<%# "profileimage.ashx?[COLOR="Red"]loginname[/COLOR]=" + Eval("loginname")%>'/> [/code]

Member Avatar for mith_cool
0
257
Member Avatar for emompong

[b]>Help me with this..[/b] If you run this COM component in 64 bit environment, you will get that error message.

Member Avatar for emompong
0
428
Member Avatar for strunful

[b]>just wanted to know if u know another solution or if i'm on the right track.[/b] Great! Yes, you are on the right track. You can use ReadXml method of DataSet.

Member Avatar for strunful
0
183
Member Avatar for G_Waddell

Take a look at this lib - [url]http://www.codeplex.com/DotNetZip/SourceControl/changeset/view/29499#432677[/url]

Member Avatar for G_Waddell
-1
2K
Member Avatar for RAB123
Member Avatar for ja3_bhende

[b]>I want to find that checkbox and make invisible in this case. [/b] Use [URL="http://msdn.microsoft.com/en-us/library/system.web.ui.control.findcontrol.aspx"]FindControl()[/URL] Method.

Member Avatar for kvprajapati
0
80
Member Avatar for kdcorp87

[b]>what is the difference between httppathrequest and server.mappath.[/b] I think you want to know about Request.MapPath and Server.MapPath. There is no difference.

Member Avatar for kvprajapati
0
82
Member Avatar for Nfurman

[b]>I need to send it's value into the database automatically when an user inserts new record in my DetailsView.[/b] Assign a date value to the parameter.

Member Avatar for kvprajapati
0
208
Member Avatar for somaih

[b]>is it possible to do that ?[/b] Yes it is possible. [b]>Please help[/b] We only give help to those who show effort.[URL="http://www.daniweb.com/forums/announcement61-2.html"]~We only give homework help to those who show effort~. [/URL]

Member Avatar for kvprajapati
0
117
Member Avatar for darcee

[b]>how can i do it one at a time?[/b] [code] ... Dim s As String() = System.IO.File.ReadAllLines("file.txt")(rndVal).Split("|") ... [/code]

Member Avatar for kvprajapati
0
155

The End.