No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
22 Posted Topics
[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 …
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 …
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]
Hi Try the query like this [CODE]SELECT count(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'mytable'[/CODE]
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]"); …
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 …
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 …
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 …
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 …
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
Hi... Chk this link : [url]http://www.dotnetfunda.com/articles/article29.aspx[/url]
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
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]
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 = …
Hi, Try the regular expression as [0-9]+ Let me know if it works..
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 …
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]
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 = …
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 } }
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 …
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 …
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 …
The End.