- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
5 Posted Topics
[url]http://infynet.wordpress.com/2010/09/24/database-connection-with-c/[/url] try this one. [URL="http://infynet.wordpress.com/2010/09/24/database-connection-with-c/"]http://infynet.wordpress.com/2010/09/24/database-connection-with-c/[/URL]
for creating the session "global.asax" file is right, when you creating the session u must wright the code "Session["sec"] = 0" inside the Session_Start () function. and for connection the web.config is right for connection string code is [CODE] <connectionStrings> <remove name="conn"/> <add name="conn" connectionString="Data Source=.;Initial Catalog=addbook;Integrated Security=True" providerName="System.Data.SqlClient"/> </connectionStrings>[/CODE]
hi, i think this trick may help you First create a public function in second form and with parameters,which lake the value from first form and set the value to secon form. [URL="http://infynet.wordpress.com"]http://infynet.wordpress.com[/URL]
hi, for redirect the page use this key word Response.Redirect("home.aspx"); first check the login. then reddirect the page according to the group in to it home page
hi, first convert the datatype of both to int.use this convert.toint32(textbox1.text) and the convert.toint32("database value"); and multyply both and store the result in int type varible and then convert the in to string and store it in the database check this link. your code look like [CODE] textbox1.text=convert.tostring(convert.toint32(textbox2.text)*convert.toint32(value1)) [/CODE];
The End.
kumar169