Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #2K
~5K People Reached

22 Posted Topics

Member Avatar for sancti

[QUOTE=sancti;749126]hi all, I am developing a web application. I have written one function in .aspx file. Now i want to call that function from the .aspx.cs file. How can I do this? Can anybody help me regarding this? thanks in advance[/QUOTE] You can call that function using Page.ClientScript method something …

Member Avatar for guptanitesh1988
0
2K
Member Avatar for Edwin Ramokolo

Hi Ramo Just try these steps.. 1. If you are using a sql-server database, open enterprise manager. (The enterprise manager will be available within the sqlserver program group in windows. Start->Programs->Microsoft SQL Server->enterprise manager) 2. In the ( database window ( left pane ) locate your database and expand. You …

Member Avatar for guru_sarkar
0
143
Member Avatar for kanuri1

Hi Execute your query this way... [CODE] update guesthouse set check= Case WHEN (date_of_arr >= getdate() and date_of_dept >= getdate()) THEN 'C' WHEN (date_of_arr <= getdate() and date_of_dept >= getdate()) THEN '0' WHEN (date_of_arr <= getdate() and date_of_dept <= getdate()) THEN 'S' ELSE 'X' END [/CODE]

Member Avatar for vizy
0
115
Member Avatar for omotoyosi

Hi Try the query like this [CODE]SELECT count(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'mytable'[/CODE]

Member Avatar for kvprajapati
0
88
Member Avatar for .netidiot

Hi, Here is the way. u can send mail to admin, while entering the data into DB [code] using System.Net.Mail; MailMessage msgMail = null; MailAddress objMAddTo,objMAddFrom = null; SmtpClient objSMTP = new SmtpClient(); objSMTP.Host = ""; // set your SMTP mail server.. domainname or the IP objMAddTo = new MailAddress("[email protected]"); …

Member Avatar for .netidiot
0
155
Member Avatar for vizy

Hi Friends, I am using update Panel to update the records without being page refreshed... and using updateProcess control to lock the screen with ModalPopup div Css.. After Updating the Record from the CS Files, giving the alert message using ScriptManager.RegisterStartupScript method. But this message is displayed on the modalPopUp …

Member Avatar for vizy
0
148
Member Avatar for vizy

Hi Friends, I have a web Application created, there is an option to Add/Edit the forms. My requirement is something like... When a user opens any record for editing, the details are displayed(binded) in texboxes,dropdowns,radiobuttons.. etc Here if the user modifies any data and clicks on any other link(within the …

Member Avatar for vizy
0
132
Member Avatar for vizy

Hi Friends, I am using Ajax AutoCompleteExtender for my search results(autoSuggest). The Control works fine and I could get the results coming from WebService in Panel with scrollable option. But I need the results shown are formatted as columnwise for ex : Name | Address | Phone# | EmailId with …

Member Avatar for vizy
0
132
Member Avatar for vizy

Hi Guys, I have 2 listboxes Listbox1,Lixtbox2.. I am moving items from Listbox1 to Listbox2.. and vice versa using Javascript with the button clicks. The code is working fine.. but I am unable to get the Updated(done using JS) Listbox Items at the backend(C#) file. I am using the UpdatePanel …

Member Avatar for vizy
0
137
Member Avatar for vizy

Hi Guys, I am in situation.. where I need to Convert List of Class objects to DataTable. for example : - Class Product - ProductId,ProductName,Description,Price are the Product class's get/set properties. - I got List<Products> - this need to DataTable any help would be great... Thank you

Member Avatar for JerryShaw
0
680
Member Avatar for divyasrinivasan

Hi... Chk this link : [url]http://www.dotnetfunda.com/articles/article29.aspx[/url]

Member Avatar for mail2saion
1
196
Member Avatar for sivak

Hi Check this [URL="http://www.sitepoint.com/article/net-web-services-5-steps/"]http://www.sitepoint.com/article/net-web-services-5-steps/[/URL] A step by step example

Member Avatar for vizy
0
79
Member Avatar for happyns

Hi, It seems your query is not returning any values.. try doing this [code=sql]select * from Trains where Route like '%'+@Route1+'%' and Route like '%'+@Route2+'%'[/code]

Member Avatar for vizy
0
124
Member Avatar for mansi sharma

Hi The code mentioned in PageLoad.. gets repeated for every postback, try this way... [QUOTE] protected void Page_Load(object sender, EventArgs e) { if(!IsPostback) { query = "Select * from Information"; conn.Open(); cmd = new SqlCommand(query, conn); SqlDataAdapter da = new SqlDataAdapter(cmd); DataSet ds=new DataSet (); da.Fill (ds ); GridView1.DataSource = …

Member Avatar for mansi sharma
0
114
Member Avatar for nithysony
Member Avatar for vizy
0
75
Member Avatar for yorockk

Hi.. Here may be you not are passing the Login correctly or connection string formed is incorrect... Best way is to get your connection string from Server Explorer in Visual studio Chk this : [URL="http://support.discountasp.net/KB/a70/how-do-i-connect-to-sql-server-using-visual-studio-net.aspx"]http://support.discountasp.net/KB/a70/how-do-i-connect-to-sql-server-using-visual-studio-net.aspx[/URL] Then after the connection is established, simply get your connection string from the Properties of …

Member Avatar for greeny_1984
0
176
Member Avatar for newMeg

Hi.. U need to convert your Bound Field to Template field Try doing this.. [code] <asp:TemplateField HeaderText="Total Size"> <ItemTemplate> <asp:Lable ID="Label1" runat="server" Text='<%# Eval("totalsize")/(1024*1024*1024) %>' /> </ItemTemplate> </asp:TemplateField>[/code]

Member Avatar for vizy
0
224
Member Avatar for styles_p

Hi, Yes while reading the lines from the files you can save the data into DataTable in this way [QUOTE] dt.Rows.Clear() // this will clear all the previous rows while (a != null) { string [] strValues = a.Split(new char[] {' '}); dt.Rows.Add(strValues[0], strValues[1], strValues[2]); Console.Write(a + "\n"); a = …

Member Avatar for vizy
0
76
Member Avatar for divyasrinivasan

Hi.. Put all the code in Page load event in `!IspostBack` like below.. protected void Page_Load(object sender, EventArgs e) { if(!IsPostback) { // your code here } }

Member Avatar for terrible
0
148
Member Avatar for Traicey

Try doing this.. it should work Replace this code : [code=asp.net]ddlItems.DataSource = dsCategory; ddlItems.DataMember = "Categories"; ddlItems.DataTextField = "Description";[/code] With [code=asp.net]ddlItems.DataSource = dsCategory; ddlItems.DataValuefield = "CategoryId"; ddlItems.DataTextField = "CategoryName";[/code] and also puut all your code under Page_Load like this [code=asp.net]protected void Page_Load(object sender, EventArgs e) { if(!IsPostback) { //This code …

Member Avatar for Traicey
0
206
Member Avatar for Traicey

Hi... The code you are following does overwrites the Grid. What you can do is - Copy the data getting from the dsDetails.Table[0] into the DataTable - Copy that Datatable into the session - and then merge that datatable coming from dsDetails.Table[0] with the session Datatable everytime - then Bind …

Member Avatar for 4advanced
0
85
Member Avatar for aan@ucsc

At some point, Java source needs to become platform-native executable code. This typically requires a two-step process: the developer compiles his or her source into Java bytecode, and then a Java Virtual Machine (JVM) converts this into native code for the host platform. This latter step originally was performed by …

Member Avatar for Ezzaral
0
132

The End.