- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 5
- Posts with Downvotes
- 5
- Downvoting Members
- 5
66 Posted Topics
Re: its so simple,to switch between forms--using command button onclick () event of command button-just write has response.redirect("tothepage.aspx") 2)And to create .exe for an web-project..on the project name-right click& click on build solution,,,, If i am,n2 correct -plz specify what is wrong.... | |
can anyone,plz send m the code for retreiving & updating images onto the sql-server using vb.net...ASAP... regards, preetham...... | |
Re: In vb.net,its not possible to create .exe files& if u want to view the compiled file-just check it out in vs-projects.. In vb.net,once the code is compiled and launched on the server-then the code of project can't b viewed... | |
Re: Add to the code has dim dr as (sql.datareader=cmd.executereader)i hope this statement --works out,,,, | |
Re: just paste this code::: [COLOR=#0000ff]Protected[/COLOR] [COLOR=#0000ff]Sub[/COLOR] btnchk_name_Click([COLOR=#0000ff]ByVal[/COLOR] sender [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]Object[/COLOR], [COLOR=#0000ff]ByVal[/COLOR] e [COLOR=#0000ff]As[/COLOR] System.EventArgs) [COLOR=#0000ff]Handles[/COLOR] btnchk_name.Click [COLOR=#0000ff]Dim[/COLOR] str [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String[/COLOR] = [COLOR=#800000]"select ID from table1 where ID = '"[/COLOR] & txtid.Text & [COLOR=#800000]"'" [/COLOR][COLOR=#0000ff]Dim[/COLOR] con [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String[/COLOR] = ConfigurationManager.AppSettings([COLOR=#800000]"preeconn"[/COLOR]) [COLOR=#0000ff]Dim[/COLOR] com [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]New[/COLOR] SqlCommand(str, [COLOR=#0000ff]New[/COLOR] SqlConnection(con)) com.Connection.Open() [COLOR=#0000ff]Dim[/COLOR] da [COLOR=#0000ff]As[/COLOR] … | |
Re: what d u mean-u mean u want to open the browser using vb.net..! | |
Re: man,its simple task- dont worry,just create textbox& in properties make textmode-has password.to check whether name exists or not in password private sub btn_check(sender,object) [COLOR=#0000ff]Dim[/COLOR][COLOR=#000000] str [/COLOR][COLOR=#0000ff]As[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]String[/COLOR][COLOR=#000000] = [/COLOR][COLOR=#800000]"select ID from table1 where ID = '"[/COLOR][COLOR=#000000] & txtid.Text & [/COLOR][COLOR=#800000]"'" [/COLOR][COLOR=#0000ff]Dim[/COLOR] con [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String[/COLOR] = ConfigurationManager.AppSettings([COLOR=#800000]"preeconn"[/COLOR]) [COLOR=#0000ff]Dim[/COLOR] com [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]New[/COLOR] … | |
Re: first of all u have to declare in the webconfig file.About the key (being used),and that key can be accessed in code-behind file using--->dim con as string=configurationsettings.appsettings("manager") ........... | |
Re: just use this code& place loaddrp() in page_load where tablename is"table1" & field to b populated inside dropdownlist is "ID"...... [COLOR=#0000ff]Public[/COLOR] [COLOR=#0000ff]Function[/COLOR] loaddrp() [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String [/COLOR][COLOR=#0000ff]Dim[/COLOR] str [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String[/COLOR] = [COLOR=#800000]"select ID from table1" [/COLOR][COLOR=#0000ff]Dim[/COLOR] con [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String[/COLOR] = ConfigurationManager.AppSettings([COLOR=#800000]"preeconn"[/COLOR]) [COLOR=#0000ff]Dim[/COLOR] com [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]New[/COLOR] SqlCommand(str, [COLOR=#0000ff]New[/COLOR] SqlConnection(con)) com.Connection.Open() [COLOR=#0000ff]Dim[/COLOR] ds … | |
Re: hey, ru beginner-if yes dont go with such a rustic projects!always go with small things(then once u feel confident ,then u proceed to type of project.which u have mentioned!).... | |
Re: do as i said- 1)open a form-drag&drop 2 labels,2textboxes& a button 2)on a button name it has (SUBMIT-button) 3) create a table in sql-server with ur desired tablename 4)the table should have two fields-name,password. 5)entire the data into fields in database. 6)click on the submit button-of the form(in code-behind file) … | |
Re: just goto, project click on "add references " and select "jet oledb..." from the list and click on it.. Then it has to work& if "jet oledb..." doesnt exists in the list of refrences then the software have to be installed..... | |
Re: just use cache to perform this type of operation... It will b fine. | |
Re: hai, first check out -crystal report is installed in ur system& if its yes-then connect crystal report with db(by clicking on source option-present in file,menu) And also manually connect db with reports-by writing code invb.net....i think after that,u should b able todo!!!! | |
Re: man plz b specific- This is not mobile to send message in the form of sms.if u want to use keypress(then use javascript).... | |
Re: check out,whether u have written checkbox function-inside the if(page.isnotpostback) regards,, preetham | |
Re: Hi, [url]http://msdn.microsoft.com[/url] And in search engine -specify has deployment!! Regards, Preetham | |
Re: In software-u cant always stick to the same thing(i.e, u cant stand on the same banyan tree laid b ur grandfather!!)... | |
Hai,,, Can somebody help m,in creating the code for shopping cart(I mean tell m logic) or else .Pass on code for creating shopping cart in vb.net.... regards... preetham | |
why am i not able to pass two values between pages in first page for submit_btn.click() [COLOR=#0000ff]Dim[/COLOR] url [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String [/COLOR]url = [COLOR=#800000]"Project.aspx?" [/COLOR]url &= [COLOR=#800000]"id="[/COLOR] & id_txt.Text & [COLOR=#800000]"" [/COLOR]url &= [COLOR=#800000]"age="[/COLOR] & age_txt.Text & [COLOR=#800000]"" [/COLOR]Response.Redirect(url) ---------------------------- In second page called Project.aspx: sub page_load() txtid.Text = [COLOR=#800000]"id:"[/COLOR] & … | |
Re: do u mean, clickin on button-it should perform the action as well as open popup window then.. sub btn_click(sender,obj) [COLOR=#008000]Dim popupScript1 As String = "<script language='javascript'>" & _ [/COLOR][COLOR=#008000]window.open('PopUp.aspx', 'CustomPopUp', " & _ [/COLOR][COLOR=#008000]' "'width=500, height=500, menubar=yes,resizable=yes')" & _ [/COLOR][COLOR=#008000]' "</script>" [/COLOR][COLOR=#008000]'Page.RegisterStartupScript("PopupScript", popupScript1) [/COLOR] | |
Re: try to use the javascript for setfocus& keypress... Unless& untill u use js.its ain't possible to work on vs-2003 or 5,,, if u want js-reply m back i will forward it to u,..... | |
Re: u mean,it has to b written in vb.net or entire procedure to be reduced!!! | |
Re: hai sanhita,, first to make only authorised user to access the application-create login page with userid& password field...only who has got valid userid is allowed to access next pages of application,,, 2 and 3)once user logs in ..allow him to manage or modify or perform all the actions required for … | |
hai, Its very urgent.can somebody tell m,how to add two textboxes and then display the result in the third textbox ,using keypress -in javascript.... regards.... | |
Re: mention properly what u want.... i ain't gettin ur stuff!!! | |
Re: to add menubars into ur project,,,, 1)project names 1a)project1 1ai)preethm 1aii)punith 1aiii)pathi 2a)project2 2ai)lassie 2aii)mom 2aiii)preethm =========================== i thnk this way,u can work out!!if not reply back...! regards..... preetham | |
Re: if u want to change the datagrid color,,,, Use datagrid_itemdatabound() [COLOR=#0000ff]If[/COLOR][COLOR=#000000] (e.Item.ItemType = ListItemType.Item) [/COLOR][COLOR=#0000ff]Or[/COLOR][COLOR=#000000] (e.Item.ItemType = ListItemType.AlternatingItem) [/COLOR][COLOR=#0000ff]Then [/COLOR][COLOR=#0000ff]Dim[/COLOR] value [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String[/COLOR] = Trim(e.Item.DataItem([COLOR=#800000]"Sex"[/COLOR])) [COLOR=#0000ff]If[/COLOR] value = [COLOR=#800000]"male"[/COLOR] [COLOR=#0000ff]Then [/COLOR]e.Item.BackColor = System.Drawing.Color.Chocolate [COLOR=#008000]' i is the index of the particular column [/COLOR][COLOR=#0000ff]End[/COLOR] [COLOR=#0000ff]If [/COLOR][COLOR=#0000ff]End[/COLOR] [COLOR=#0000ff]If[/COLOR] [COLOR=#0000ff]--------------[/COLOR] [COLOR=#0000ff]change according to … | |
can anybody help m-how to write code for update,delete,cancel buttons on datgrid...using vb.net only plz its urgent help m(only in code-behind file)........plz plzzzzzzzzzz | |
Re: just write has follows: < a href="pagename.aspx" ></a> instead of opening the internet explorer.... | |
Re: try ,using viewstate or cookies to find the number of hits for a particular button in page_load().. i.e, declare an global variable and on button_click function .... | |
Re: do u mean,opening the html code part of the form design.if yes then click on html part(placed on bottom part of design).if this is not what u requested for then mention specifically! | |
Re: hai, just try this... ([URL]http://www.microsoft.com/WindowsServer2003/iis/default.mspx[/URL]) | |
Re: to code in datagrid... just drag& drop it from toolbox& to colour the datagrid based on the there sales(with orange,green,yellow...etc).use datagrid_itemdatabound function.... --------------------------write this code in pageload& just drop datagrid on form,,, [COLOR=#0000ff]Private[/COLOR] [COLOR=#0000ff]Sub[/COLOR] LoadData() [COLOR=#0000ff]Dim[/COLOR] strSQL [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String[/COLOR] = [COLOR=#800000]"SELECT * FROM table1 order by ID " [/COLOR][COLOR=#0000ff]Dim[/COLOR] cnn … | |
Re: frankly to speak, always go for updated version.never goto later versions(but for practice& to gain knowledge version-2003 is best) .And if ur criteria is just to give the result then gofor vs-2005 regards,, preetham | |
Re: better choose the project,which uses all the basic operations like 1)datagrid-add,delete,update... 2)record movement-first,last,next,previous.. 3)using java scripts for(confirmation,message box,alert messages) 4)to use master pages... if u use all these operations(ur knowledge on basics will b strong).It will b also helpfull for ur programming carrier... regards... preetham | |
[COLOR=#0000ff]can somebody tell m, what's the error in below code-where all the columns with sex="male" should be displayed with color choclate in datagrid...plz -------------------------------------- Protected[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]Sub[/COLOR][COLOR=#000000] datagrid1_itemdatabound([/COLOR][COLOR=#0000ff]ByVal[/COLOR][COLOR=#000000] sender [/COLOR][COLOR=#0000ff]As[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]Object[/COLOR][COLOR=#000000], [/COLOR][COLOR=#0000ff]ByVal[/COLOR][COLOR=#000000] e [/COLOR][COLOR=#0000ff]As[/COLOR][COLOR=#000000] System.Web.UI.WebControls.DataGridItemEventArgs) [/COLOR][COLOR=#0000ff]Handles[/COLOR][COLOR=#000000] datagrid1.ItemDataBound[/COLOR] [COLOR=#0000ff]If[/COLOR] (e.Item.ItemType = ListItemType.Item) [COLOR=#0000ff]Or[/COLOR] (e.Item.ItemType = ListItemType.AlternatingItem) [COLOR=#0000ff]Then [/COLOR][COLOR=#0000ff]Dim[/COLOR] str [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String [/COLOR][COLOR=#0000ff]If[/COLOR] … | |
Re: david, if ur using sql-server 2005(then while creating table ).just set the datatypes value according to ur need.if u want data to b displayed in dollar format(just-set particular column to dollar format)...then search in datatypes avaliable,,,,, happy coding.... | |
Re: use this javascript when ur trying web-applications(vb.net,vs-2003 or more..) btndelete.Attributes.Add([COLOR=#800000]"onclick"[/COLOR], [COLOR=#800000]"if(confirm('Are you sure ,want to delete the record?')){}else{me.server.transfer ('"[/COLOR] & [COLOR=#800000]"webform1.aspx"[/COLOR] & [COLOR=#800000]"') } "[/COLOR]) happy coding.... | |
Re: yup,, the project which u have chosen is like-kings path to .net(for a beginner).use whatever u have mentioned 1)use sql-server. 2)use predefined functions of datagrid(insert,delete..) 3)use datagrid or gridview(And use vs-2005).... Happy coding,,,, | |
Re: hai looney, to find the greatest of all the 10 arrays use ( start searching from 1 to 10 dr="select * from table where id>=10" cmd=dr.executescalar) try,something similar like this -i hope it helps u up.... regards,, preetham | |
Re: or else, Try using select statements- dim a as boolean select a case 0 request.write("its true") case 1 request.write("its false") end select happy programming.... | |
Re: hai, To perform has u said-1)fetch the data from one table& display it on the form using -dropdownlist, 2)then based on his/her selection (or user clicked)just display it on other table thats it... 1)select * from table where ID=" & id.txt 2)insert into table2 where ID =" &id.selectedvalue happy coding.... | |
Re: hai, First check -whether all the fields are being specified& used in the query.And then check out whether datatype used for the fields are same as datatype used while in the update query.,,, | |
Re: hai, try using javascript(i mean keypress)where particular user can access -based on the selected name selection.... | |
Re: ksiteesh, attach the code here- i will rectify & tell whats the problem,,, | |
Re: hey man, its a good question-if u want ur project to run on other systems(not 2 modify the coding).Then that particular system should have internet explorer.. And if u want to install ur project on other system& u want user of that system to modify ur coding-then u need to … | |
Re: i thnk u can use this to insert data from textbox into database..if u want some more description -just reply back.... [COLOR=#0000ff]Private[/COLOR] [COLOR=#0000ff]Sub[/COLOR] LoadData() [COLOR=#0000ff]Dim[/COLOR] strSQL [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String[/COLOR] = [COLOR=#800000]"insert (name,age) values(name_txt.text,age_txt.text)into table21" [/COLOR][COLOR=#0000ff]Dim[/COLOR] cnn [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String[/COLOR] = ConfigurationSettings.AppSettings([COLOR=#800000]"preeconn"[/COLOR]) [COLOR=#0000ff]Dim[/COLOR] cmd [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]New[/COLOR] SqlCommand(strSQL, [COLOR=#0000ff]New[/COLOR] SqlConnection(cnn)) cmd.Connection.Open() [COLOR=#0000ff]Dim[/COLOR] myCommand [COLOR=#0000ff]As[/COLOR] … | |
Re: just send the code whatever written by u-i will check it out& give the suggestion.... | |
hello can anybody suggest m, for example-how to change bckground color of particular column-if it has values less than 10(i mean using datagrid_itemdatabound).i searched google for one whole week.but all went in vain!!anybody plz provide m pdf's or articles regarding this article..any type of help will b much appreciated...!! |
The End.