- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
I want to fill GridView ,But i dont want to use datasource..I want to use the method,thru which i add the data using row by row As in VB.net [code] Dim row0 As String() = {"A","B","C"}; Me.DataGridFile.Rows.Add(row0) [/code]. [code] public partial class refresh : System.Web.UI.Page { string query; SqlCommand cmd; … |
|
Private Sub Command1_Click() Select Case Me.Text1.Text Case 1 MsgBox ("U Entered 1") Case 2 MsgBox ("U entered 2") Case 3 MsgBox ("u entered 3") Case Default MsgBox ("Default") End Select End Sub When i enter 4 in textbox1, Msgbox is not displayed.....Default is a valid case or not in VB |
|
There are two dropDownLists on my form. In one DropDownList items are- 1)BE 2)Drawing 3)PG I want if a user selects BE in dropdownlist3 then in dropDownlist4 items are IT, CSE, MECH I want if a user selects Drawing in dropdownlist3 then in dropDownlist4 items are Drawing1, Drawing2 I want … |
|
Suppose I have items in combobox1 1) On button click event ,I want to copy all the items to combobox2 ? What is the coding for this? |
|
H frnds , i want to donwload yahoo video, [code] Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim myclient As New WebClient myclient.DownloadFile(source, dest) End Sub [/code] I write the yahoo vido url in place of source above,But yahoo vido is not downlaoding,Y so ? … |
|
hey,I know the foll. Method to read the textfile line by line. & it is also working Fine. But I want to know that method which includes EOF(End Of File). Can Somebody tell me that method. [code=vb] sFilename = "C:\Listview.txt" If Dir(sFilename.ToString) <> "" Then sFileReader = System.IO.File.OpenText(sFilename) sInputLine = … |
|
I want to chane the backColor of particular date.Mine code is only just bold the particular date,but not changing the BackColor. I have searched on internet,But none of them provide me the Solution. I Found the Below code thru net- [code] Private Sub Calendar1_DayRender(ByVal sender As Object, ByVal e As … |
|
can somebody tell me how to get file type..of any file..For .txt file file type is [B]Text Document[/B],for doc file - [B]Microsoft Word Document[/B] & so on. Plz help me out,I m not finding anything on the net related to it. |
|
I have bind the DataGridview with DB. To add the data from textboxes to DataGrid, I use the foll. code- [code] Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Try Dim row0 As String() = {TextBox1.Text, TextBox2.Text, TextBox3.Text} DataGridView1.Rows.Add(row0) row0 = Nothing Catch ex As Exception … |
|
There is no label click evnet in ASP.net? I want to perform some action on label click . When i double click on it Label1_Load EVent is generated? |
|
I want to ask that y there is need to add user control in web.config & when we add it?? If we want to use user control in different pages,we can just drag & drop it on the form,then y we add it in web.config file. |
|
I want to change cursor type & backcolor when mouse moves over a td,Suppose I want to chnage the cursor to Hand, & backcolor to Blue on mouse move, & on mouse leave i want to change the cursor to default..How to do it????????? |
|
Suppose there are two buttons named button1 & button2.I wnat that when the user presses enter key,button2 click event will fire? How to do dat,Can somebody tell me? |
|
Frnds I want to ask that i my PC,msdn sites are not going to open, Firefox can't find the server at msdn.microsoft.com. EVen if i open in IE 6 The page cannot be displayed What to do????Can u help me out?? |
|
1)Frnds tell me that is there any Lock statement in SQL?-Yes or No. 2)In my interview i was asked,What is deadlock??? But i dont know?Can u tell me out? 3)Then they ask me about the Lock.I answer Lock ensures that when one thraed is in critical section ,no other thraed … |
|
1) What are the benefits of using Class Library? Secondly tell me one thing, I was asked in one of my interviews.Different types of cursors?? As u all know, cursors are of diff types in ADO,RDO,DAO??? So which answer to give???? Do I all have to know all the cursor … |
|
1)What are different types of Cursors? Explain me in detail plz. 2)What are diff types of locks? In some sites- Four types of locks availbale in ADODB 1.Optimistic 2.pessimistic 3.batch optimistic 4.readonly In some sites Forwardonly , lock,adLockUnspecified What are exact locks,can somebody tell me? 3) What is Z order … |
|
Suppose mine project is on desktop C:\Documents and Settings\Mansi\Desktop\ASPStarting & Mine XML file is in D:\Documents and Settings\Sonia\Desktop\ASPStarting\App_Data I change the ADRORATOR source code as below- <asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile ="C:\Documents and Settings\Mansi\Desktop\ASPStarting\App_Data\banner.xml /> When I execute the website,foll .error comes ERROR - 'C:\Documents and Settings\Mansi\Desktop\ASPStarting\App_Data\banner.xml' is a physical path, … |
|
1) What is versioning? 2) What is DLL hell? 3) Destructor - It is called automatically when object is destroyed. Rite or wrong? 4) Finalize or destructor are same?? They have same definitions. 5) Interfaces vs. Abstract Classes? 6) BCL vs FCL? |
|
I want to show progress while fetching the records from the database...How to show progress..There is no progress bar in ASP.net????????? |
|
Can somebody help me in making me understand the regex function- What these characters means /^(\w+[\-\.])*\w+@(\w+\.)+[A-Za-z]+$/ [code] function validate(input) { var email =/^(\w+[\-\.])*\w+@(\w+\.)+[A-Za-z]+$/; if(email.test(input)) { return true; } else { alert('invalid email id'); return false; } } [/code] |
|
I have two textboxes textbox1 & textbox2..I use compare validator,Suppose I enter 12992 in textbox1 & textbox2 text is left blank,& when i click on button, then y the page is postback.Cz page is not postback,untill all the validators are satisfied!!!!!!!!!!! |
|
I have one custom validator, one textbox & one button..I m checking the length of data entered in textbox. VB CODE [code] <asp:CustomValidator ID="CustomValidator1" runat="server" OnServerValidate="ValidateThis" ErrorMessage="The username must be 8" ControlToValidate="TextBox4"></asp:CustomValidator></td> [/code] [code] <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script … |
|
I want to get the width & height of the image file.. Mine code is currently getting the file size, I also want to get the width & height.How to get width & height,kindly help me. [code] Imports System.IO Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e … |
|
I m creating columns at runtime,I want to know how add delete & edit buttons in each row & to create them at runtime..Foll code create columns at runtime - [code] protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { DataTable dt = new DataTable(); dt.Columns.Add("SNo"); dt.Columns.Add("First … |
|
Can somebody tell me how to create a User Control that consists of two textboxes & button..On button click,i want to show just the msg textbox1.text & " " & textbox2.text,, Tell me how to use the user control on two forms!!! |
|
hello frnds,i want to check if the computer is in sleep mode or not...Suppose my project is in normal state..I change the state to sleep mode,I want that now when the computer wakes from sleep mode,I want that my project is in minimized state..How to check dat? I have searched … |
|
Re:
I am working on a vb app and am getting this error when calling a form (frmCaseList) from another form(LoginForm). the frmCaseList wasat one time in a different solution where it worked fine (it was the startup form). frmCaseList is also inside a namespace. If I commentout the [icode].show()[/icode] line … |
|
I m not able to replace the contents,help me out!!! [code] protected void Button1_Click(object sender, EventArgs e) { string a = "11-22-33-44-55"; string [] Array; int i; int lnewvalue; lnewvalue = 2; Array = a.Split('-'); for (i = 0; i <= Array.Length - 1; i++) { Array[4].Replace(Array[4].ToString, lnewvalue); } } … |
|
hey frnds, I want to ask you want thing is it possible to resize the image of media player without changing the image height + width. Plz somebody help me out.. [code] Public Class Form2 Dim sFilename As String = "D:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Blue hills.jpg" Private Sub Form2_Load(ByVal … |