- 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
52 Posted Topics
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 m also facing same probs sometimes | |
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 … | |
I want to get image from the file..I m able to do it....But mine code do not close the file,after getting the image,I want to close the file.Cz after getting the image,I want to delete that file.....on Deleteing error is dere file is user by another process... Public Sub GetImagesContent(ByVal … | |
Can somebody what is the Replace equivalent in ASP.Net..Below is the VB.Net code..I Searched on the net..but not able to do it....I hope so it will be too simple.. [code] Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim sID As String = "ABC1" Dim lId … | |
I want to ask how add crossButton image to TabPage as in IE..To add left hand side image..I assign the imagelist property if tabcontrol to imagelistNAme & then slect the tabPage & change the imageIndex. I want to ask how to add Right Hand Side Cross Button Image & if … | |
hi , I navigate the web browser to google ...i want to change the context menu..I want that when the user right click on google in Web Browser in project---I add my own context menu items..is it possible & change the default one? I hope u get mine question. [code] … | |
I associate the listview with the imagelist..Set property of listview SmallList to Imagelist..I want that on listview click. I get the icon name....But i m not getting how to get icon name..Mine code below-- [code] Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load … | |
Hey i want to ask that,suppose in HTML table cell...I insert Hyperlink....Is that possible to write the code for that hyperlink...Cz if the iamges are static,HTML table is better option than Gridview,I thk so???? | |
I bound gridview with databse..property Checkbox -true . I have three columns roll,name ,roll. I want that on button_click, roll nos are displayed whose checkboxes are checked in gridview-- SOURCE TAB [code] <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"> <Columns> <asp:TemplateField > <ItemTemplate > <asp:CheckBox ID ="chk" runat ="server" /> </ItemTemplate> </asp:TemplateField> <asp:BoundField … | |
I bound gridview with databse..property Checkbox -true . I have three columns roll,name ,roll. I want that on button_click, roll nos are displayed whose checkboxes are checked in gridview-- SOURCE TAB [code] <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"> <Columns> <asp:TemplateField > <ItemTemplate > <asp:CheckBox ID ="chk" runat ="server" /> </ItemTemplate> </asp:TemplateField> <asp:BoundField … | |
I want to add data to dataGridView.Mine code is as below- [code] protected void Page_Load(object sender, EventArgs e) { this.GridView1.rowcount = 3; this.GridView1.Rows[0].Cells[0].Value = "1"; this.GridView1.Rows[0].Cells[1].Value = "11"; this.GridView1.Rows[1].Cells[0].Value = "2"; this.GridView1.Rows[1].Cells[1].Value = "22"; this.GridView1.Rows[2].Cells[0].Value = "3"; this.GridView1.Rows[2].Cells[1].Value = "33"; } [/code] [B][COLOR="Red"]Errors-[/COLOR][/B][B]1)[/B]'System.Web.UI.WebControls.TableCell' does not contain a definition for 'Value' … | |
I know how to access Server Side Session variable at client side(JS)..But i want to know how to Set Sessin varable at Clinet side(JS) & access its value at Server side..If somebody knows help me out!!! | |
Mine code split strings using "^", I want to split the strings using "^^^^", [code] string b = "mansi^^^^sharma"; [/code] But i m not getting it,Cz split takes just one char. Mine code is as below- [code] protected void Button1_Click(object sender, EventArgs e) { string b = "mansi^sharma"; string[] splt … | |
Hey frnds,I want to get files of Recycle Bin that are currently present in Recycle Bin.can somebody help me out.Cz i have no idea from where to start. | |
I added nedia player on mine form. On Button click, In media player video starts. Suppose i write. AXMediaPlayer1.URL="http://www.voanews.com/wm/voa/europe/alba/alba1700vb.asx" Now the Video starts.. I want that on Save_Movie Button, Video that is Running in media player is Saved in computer.can Somebody tell me from where to start?? | |
[code=vbnet] Imports mshtml Imports SHDocVw Imports Microsoft.Win32 Imports System.Runtime.InteropServices Public Class Form1 Public Const BaseKey As String = "SOFTWARE\Microsoft\Internet Explorer\Extensions" Public Const SubKey As String = "{10954C80-4F0F-11d3-B17C-00C0DFE39736}" Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim reg As RegistryKey = Registry.LocalMachine Dim sk As RegistryKey = … | |
1) [B]INNER JOIN[/B]---I know 2)[B]OUTER JOIN[/B]--I know 3)[B]CROSS JOIN[/B]--I know 4)[B]THETA JOIN[/B]--???? 5)[B]SELF JOIN[/B]--?????? 6)[B]NATURAL INNER JOIN[/B]- It eliminates attributes that have the same name. Can u plz frd me the example of NATURAL INNER JOIN. cz its not working in SQL 2005. 7) [B]EQUI JOIN[/B]----?????? Your EArly Reply will … | |
Sorry I got the answer Dats y i delete it the question. But I do not know how to delte the thread... | |
I want to copy the selected items from listbox1 to listbox2. I know how to copy all the items but not selected. [B]Private Sub Command3_Click() For i = 1 To List1.ListCount List2.AddItem i Next End Sub[/B] Above Code will copy all the items,But I want to copy selected items. | |
Can somebody tell me the diff b/w Debug & Debug.Print If we write Debug.Print "i=" & i It gives the o/p in the immediate window. If we write print "i=" & i It gives the normal o/p. But what is the use of Debug.print & where it is used? | |
1) open the table in desihn view. 2)Select the filed u want to alter. 3)Select LOOKUP tab. 4)In display control box,Select Combobox 0r listbox. 5)Under Row Sorce TYpe,SElect Value list. I want to ask that if I select Combobox,Then in Row Source type we select Value List. I want to … | |
--Que-4)Create a Query to pull all emails that contains --characters +,^,*,&,! [code=sql]create table mail3(email varchar(50)) insert into mail3 values('mansi.sharma@yahoo.co.in') insert into mail3 values('mansi.sharma+yahoo.co.in') insert into mail3 values('mansi.sharma^yahoo.co.in') insert into mail3 values('mansi.sharma*yahoo.co.in') insert into mail3 values('mansi.sharma&yahoo.co.in') insert into mail3 values('mansi.sharma!yahoo.co.in') insert into mail3 values('mansi&sharma!yahoo.co.in') select * from mail3[/code] [icode]select * from … |
The End.