Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~11.3K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums

47 Posted Topics

Member Avatar for kelvnese

hi you need to write the connectionstring first which is used to establish a connection between your database and application. create a db with table name as table_details and fields as fname, lname with varchar type. Let us take two textboxes with id text_first and text_last. in button_click event you …

Member Avatar for Mumbai Indians
-1
227
Member Avatar for yash777

[QUOTE=yash777;918333]Hello , I would like to count the no of hits to my website. How do i do it? whether I need to code it in Global.asax file in application on start ?????? Reply[/QUOTE] Hi you can place the code in Global.asax file and u need to call that variable …

Member Avatar for mirzamujib
0
177
Member Avatar for tanhc

Hi you can use the following query. declare approved as 'varchar' [code] select projectid,projectname,path from projecttable, phototable where projecttable.projectid= phototable.projectid and phototable.appoved like 'true' [/code] Let me know if you face any problem with this query.

Member Avatar for poojaabora
0
141
Member Avatar for Edmondo

Hi you can write two seperate insert queries on single button click... y r u opting for single query.. if u need that let me know.. please follow this.. [code=sql]INSERT INTO Names (person1, Address, Postcode) VALUES (@person1, @Address, @Postcode) //this is first query INSERT INTO Group (GroupName) VALUES (@GroupName) //this …

Member Avatar for kameswari
0
103
Member Avatar for rmc

Use the following code.. here my textbox id is TextBox1 and database name :records Table name: data [code] using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient; public partial class Default2 : System.Web.UI.Page { SqlConnection con = new SqlConnection(@"Data Source=WINKC185045-MAB\SQLEXPRESS;Initial Catalog=Records;Integrated Security=True"); protected …

Member Avatar for abdalla_92
0
114
Member Avatar for santhoshvarma.a

hi please use the following... take a checkbox .. and give the text property as ur wish... (here i have given hello) default.aspx: source code [code] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> …

Member Avatar for peter_budo
0
1K
Member Avatar for sandeep_1987

Hi Use session.Abandon(). It will automatically closes all the sessions opened upto that function.

Member Avatar for dnanetwork
0
101
Member Avatar for mohankumar554

hi use the following code.. int res=0; res = Convert.ToInt32(TextBox1.Text) + Convert.ToInt32(TextBox2.Text); TextBox3.Text = res.ToString(); Let me know your comments. If It solves ur problem mark it as solved.

Member Avatar for dnanetwork
0
90
Member Avatar for shine_jose
Member Avatar for nikichu

hi you need to set the autopostback properties of all dropdownlists to "TRUE" and then you need to write the code in the select-indexchanged event.

Member Avatar for nikichu
0
131
Member Avatar for S2009

hi use and try the following code.. Create a folder images and place logo.jpg and Redbik.jpg in that folder. source code: [code] <asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile="~/myAds.xml" OnAdCreated="AdRotator1_AdCreated" /> [/code] myAds.xml: [code] <?xml version="1.0" encoding="utf-8" ?> <Advertisements> <Ad> <ImageUrl>images\Logo.jpg</ImageUrl> <NavigateUrl>http://www.site1.com</NavigateUrl> <AlternateText>Site1 Main</AlternateText> <Impressions>50</Impressions> <Keyword>Product1</Keyword> </Ad> <Ad> <ImageUrl>images\RedBik.jpg</ImageUrl> <NavigateUrl>http://www.site2.com</NavigateUrl> <AlternateText>Site2 Main Page</AlternateText> …

Member Avatar for S2009
0
181
Member Avatar for pyanbrown

Hi Friend, For web developement you have to use ASP.NET with default language as either C# OR VB. For pure windows application youneed to use VB.NET OR C#.NET.

Member Avatar for Ramesh S
0
160
Member Avatar for saj_amo

hi sajjad, Here you need to use session concept. When ever a newuser is logged into the site from the login page ->it will automatically sets a session to that user (if the user is valid) then it will redirected to welcomepage. During the signout u need to kill that …

Member Avatar for kameswari
0
173
Member Avatar for sam023

hi sam... here i am fetching the data from the db and assing that data to a string array... code is ... [code] protected void Page_Load(object sender, EventArgs e) { SqlConnection con = new SqlConnection(@"Data Source=WINKC185045-MAB\SQLEXPRESS;Initial Catalog=Records;Integrated Security=True"); SqlDataAdapter da = new SqlDataAdapter("select name from data", con); DataSet ds = …

Member Avatar for kameswari
0
112
Member Avatar for coollife

Hi coollife, u need to place that image in the project folder in the soln explorer i.e., from the path that ur running the appln. Then it will give the image of the givenpath

Member Avatar for kameswari
0
99
Member Avatar for naresh_4785
Member Avatar for kameswari
0
117
Member Avatar for riyas_26

Hi Riyas, as earlier suggested.. you can directly write that xml file into a string and you can print on the webpage. here textbox1 is a textbox with multiplelines... [code] protected void Page_Load(object sender, EventArgs e) { string xmlData = System.IO.File.ReadAllText(@"C:\test.xml"); System.IO.File.WriteAllText(@"C:\test.xml", xmlData); TextBox1.Text = xmlData; } [/code]

Member Avatar for kameswari
0
319
Member Avatar for riyas_26

.Net framework in short form is: Multiple languages on one platform...

Member Avatar for riyas_26
0
123
Member Avatar for f_atencia
Member Avatar for q8_dreamy
Member Avatar for ishamputra

Here is my code... i have taken a page called image.aspx in that the following is the source code (which consists of a griview with hyperlink) [code] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="image.aspx.cs" Inherits="image" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> …

Member Avatar for kameswari
0
773
Member Avatar for riyas_26
Member Avatar for riyas_26
0
108
Member Avatar for riyas_26

You need to check the location of the file once... usuallly this error will occur when ever the location of path is incorrect...

Member Avatar for sknake
0
231
Member Avatar for laghaterohan
Member Avatar for kameswari
0
137
Member Avatar for laghaterohan

hi Rohan, You have to include one more field in your citymaster table i.e., categoryid which is a foreignkey between category and citymaster tables. Let me know if u want further ???

Member Avatar for kameswari
0
92
Member Avatar for anuj_sharma
Member Avatar for Nasa2014

hi... you need to remove a line from ur code... [code] Response.Write("Success1Success2"); [/code] let me know.. if u face pbm still

Member Avatar for kvprajapati
0
101
Member Avatar for Kusno
Member Avatar for laghaterohan

hi friend please use the following code...in button click [code] protected void Button1_Click(object sender, EventArgs e) { Calendar1.SelectedDate = Convert.ToDateTime(TextBox1.Text); } [/code] tell me whether this solves or not.

Member Avatar for laghaterohan
0
129
Member Avatar for anuj_sharma

have u set the autopostback property to true?? clear your question once...

Member Avatar for kameswari
0
102
Member Avatar for kralco626

hi use window.open in ur script dont redirect that page. then it willopen a seperate window. [code] <script language="javascript" type="text/javascript"> function btnWeek_onclick() { window.open("date.aspx"); } </script> <body> <asp:Button ID="Button1" runat="server" OnClientClick ="return btnWeek_onclick()" Text="Button" /> </body> [/code] Let me know if u face any problem further

Member Avatar for kralco626
0
287
Member Avatar for anuj_sharma

hi you can modify it as follows. string CommandText = "SELECT * FROM table1 WHERE emp_bookid='"+id+"' "; Let me know if you face any problem with this. // id syntax in clear way = ' "+id+" '

Member Avatar for anuj_sharma
0
162
Member Avatar for chrispaul8676
Member Avatar for ch_nilanjan

Hi IE wont support tif files to display. so u need to convert that tif into gif or any otherformat. The following is some sample code. Hope it helps u. [code] System.IO.Stream _stream = new System.IO.FileStream(@"img\Calendar2008.tif", System.IO.FileMode.Open); Bitmap _bmp = new Bitmap(_stream); Context.Response.ContentType = "image/gif"; _bmp.Save(Context.Response.OutputStream, ImageFormat.Gif); _bmp.Dispose(); _stream.Close(); [/code]

Member Avatar for Ramesh S
0
222
Member Avatar for arny1
Member Avatar for anuj_sharma

hi anuj, why are you using gridview for single row then? you can take a table which looks like a gridview with single row (with ur 2 columns)? Please let me know if you are using a grid view with single row or multiple rows? Regards, Phani

Member Avatar for anuj_sharma
0
80
Member Avatar for mohankumar554
Member Avatar for kameswari
0
88
Member Avatar for andhrawala1983

Hi You can use a gridview with only 2 hyperlink buttons and remaining columns as some importent details. In that buttons are "select" and "delete". okay? when ever u click on select button ur page will redirected to anotherpage with that id as a querystirng. In the second page u …

Member Avatar for andhrawala1983
0
128
Member Avatar for VinayRok

hey you can use the following code.. it may help u out... [code] <%@ Page Language="C#" %> <script runat="server"> protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Label1.Text = "Start"; } TextBox1.Attributes.Add("onkeyup", "rewriteLabel()"); } </script> <script type="text/javascript"> function rewriteLabel(){ TextBox1.Text = Label1.text; } </script> <html xmlns="http://www.w3.org/1999/xhtml" > <head …

Member Avatar for kameswari
0
261
Member Avatar for nccsbim071

Hey use.. url mappings in webconfig file... please refer the following [url]http://davidhayden.com/blog/dave/archive/2005/12/07/2613.aspx[/url]

Member Avatar for dnanetwork
0
251
Member Avatar for Pankaj18

Hi Pankaj, I had a doubt in your question. Why dont u directly bind the grid with out that field (column). Y do u want that as a hidden entry in gridview. [[COLOR="Green"]COLOR="Red"]Best Regards, Phani Chavali[/COLOR][/COLOR]

Member Avatar for Pankaj18
0
681
Member Avatar for yash777

Hey .. after you found the solution just please mark it as solved... so that everybody can easily refer....... Thanks, Phani

Member Avatar for ctyokley
0
201
Member Avatar for yash777

Hi you can use the following code..........for creating xml document with your nodes.... [code=aspnet]XmlDocument xmlDoc = new XmlDocument(); XmlDeclaration xmlDeclaration = xmlDoc.CreateXmlDeclaration("1.0", "utf-8", null); XmlElement rootNode = xmlDoc.CreateElement("proposalRequests"); xmlDoc.InsertBefore(xmlDeclaration, xmlDoc.DocumentElement); xmlDoc.AppendChild(rootNode); XmlElement parentNode = xmlDoc.CreateElement("proposal"); parentNode.SetAttribute("ID", "01"); xmlDoc.DocumentElement.PrependChild(parentNode); XmlElement mainNode = xmlDoc.CreateElement("name"); XmlElement descNode = xmlDoc.CreateElement("contactNo"); XmlElement activeNode = xmlDoc.CreateElement("city"); …

Member Avatar for yash777
0
335
Member Avatar for drumichael87

Hi, You can use the itemtemplate to display the date according to ur format. the following is code snippet... Hope it help u.. [code=asp.net]<asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="False"> <Columns> <asp:TemplateField> <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%#Bind("Joining_Date","{0:dd/MM/yyyy}")%>'></asp:Label> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView>[/code] Best Regards, Phani Chavali

Member Avatar for dnanetwork
0
216
Member Avatar for ricksvoid

Hi, I have some doubts on your question. u want to send a mail from the details view-> by clicking on the email id?? right?? Canyou please suggest me .. what are the main things we need to cosider in designing a website. Mainly for asp.net professionals -> what we …

Member Avatar for kameswari
0
189
Member Avatar for kameswari

Hi Friends, I want to know my PF amount which i saved in my previous company. If you know any link related to PF please provide me. I have the pf account number with me. Thanks, Phani Chavali

0
69
Member Avatar for gobi_roy

Hi you can set the navigateURL property as follows... <asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/images/Avatars/12.gif" NavigateUrl="~/Default2.aspx">HyperLink</asp:HyperLink> BYE..

Member Avatar for kameswari
0
142

The End.