Click here to Skip to main content
Page 1 of 28
Page Size: 10 · 25 · 50


Author filtered by: _Amy [x]
Answer 13 May 2013   license: CPOL
Refer the links below:Displaying Empty GridView[^]Show Header when GridView is Empty[^]--Amit
Answer 13 May 2013   license: CPOL
Here is an answer of similar qestion:How do I rotate a label in C#?[^]--Amit
Answer 13 May 2013   license: CPOL
Try this:ALTER PROCEDURE sp_ArchiveTable1( @StartDate datetime, @EndDate datetime, @DateColumn VARCHAR(100), @TableName VARCHAR(100), @NewTableName VARCHAR(100))ASBEGIN DECLARE @NextIDs TABLE(UniqueID int primary key) DECLARE @statement nchar(1000) = N'SELECT * INTO...
Forum Message 12 May 2013  
I wish I could have selected more than one. :rolleyes: :rolleyes: I wish, I could have written for my mind:Mind.AsEnumerable().Where(m => m["EmptyCorner"] ==
Answer 12 May 2013   license: CPOL
Use OnSelectedIndexChanged event of DropDownList. Try this:protected void ddlWarrenty_SelectedIndexChanged(object sender, EventArgs e){ if(ddlWarrenty.SelectedItem.Text.Trim() == "1 Year") { DateTime dtday = Convert.ToDateTime(dptPurchaseDate.Text.Trim()); ...
Answer 9 May 2013   license: CPOL
Check the similar solution here[^].--Amit
Answer 9 May 2013   license: CPOL
Update your DataSource in connection string. Go to web.config --> Find your connection string --> Update data source from .\SQLEXPRESS to YourMachineName\SQLEXPRESS.Try this:connectionString="data source=YourMachineName\SQLEXPRESS; Integrated Security=SSPI; Initial Catalog=aspnetdb;"...
Answer 8 May 2013   license: CPOL
You need to setup SSL in IIS.Refer the links below:How to Set Up SSL on IIS 7[^]How to implement SSL in IIS[^]How To Set Up an HTTPS Service in IIS[^]Tip/Trick: Enabling SSL on IIS 7.0 Using Self-Signed Certificates[^]--Amit
Answer 8 May 2013   license: CPOL
Be little smart and check, The article source code is in a Web Application[^] and the thing which you are creating is Website[^].Check : MSDN : Web Application Projects versus Web Site Projects in Visual Studio[^].I would suggest you, "Not to copy". Just try to understand that how it...
Answer 8 May 2013   license: CPOL
Try this:CONVERT(NUMERIC(18, 2), YourData)OrCASTE(YourData as NUMERIC(18, 2))I would suggest you to read Data Type Conversion (Database Engine)[^] and CAST and CONVERT (Transact-SQL)[^] functions.Hope it helps!--Amit
Answer 8 May 2013   license: CPOL
You should use EXISTS (Transact-SQL)[^] statement in the procedure. Try this:SQL:CREATE PROCEDURE spSubNewsletter @Email VARCHAR(50)ASBEGIN IF NOT EXISTS(SELECT * FROM sdfClient WHERE EmailID=@Email) BEGIN INSERT INTO sdfClient(EmailID) VALUES (@Email) ...
Answer 8 May 2013   license: CPOL
This error occurs when you are trying to use an Excel 2007 file with a connection string that uses: Microsoft.Jet.OLEDB.4.0 and Extended Properties=Excel 8.0.Follow the steps below:Steps:1) Click on File Menu. 2) Click on Save As. 3) Show a Box. 4) Change File Name & Save As Type to...
C#
Answer 8 May 2013   license: CPOL
Refer the links below:Custom Paging in ASP.Net GridView using SQL Server Stored Procedure[^]GridView DropDownList Pager[^]GridView Custom Paging[^]You can also check : Efficiently Paging Through Large Amounts of Data[^]Hope it helps!--Amit
Answer 8 May 2013   license: CPOL
Only one thing I can do for you is:Let me google that for you[^]--Amit
Answer 8 May 2013   license: CPOL
Refer the link below to find the answer of similar question:Telerik Forum : how to disable radtooltip?[^]And also check : Tooltip doesn't show if control is disable[^].Hope it helps!--Amit
And also.. by _Amy
Forum Message 8 May 2013  
You need to format it properly. I wish, I could have written for my mind:Mind.AsEnumerable().Where(m => m["EmptyCorner"] == "").ToList().ForEach(s => s.SetF
Answer 8 May 2013   license: CPOL
See the similar answer I've given here:DataBound and RowDataBound[^]Before the GridView control can be rendered, each row in the control must be bound to a record in the data source. The RowDataBound event is raised when a data row (represented by a GridViewRow object) is bound to data in...
Answer 8 May 2013   license: CPOL
Try giving same Alias Names. See this:insert into a(aa,b,c,d) SELECT @curRank :=IF(@prevVal= exammarks.Test1, @curRank, @studentN) AS aa,@percentile := IF(@prevVal=exammarks.Test1 , @percentile,(@totalS - @studentN + 1)/(@totalS)*100) as b,@studentN := @studentN + 1 as...
Answer 7 May 2013   license: CPOL
It is called Pivoting, see the links below:MSDN : Using PIVOT and UNPIVOT[^]SQL SERVER – PIVOT and UNPIVOT Table Examples[^]--Amit
Answer 7 May 2013   license: CPOL
The error means that Only one data source you can apply to the gridview. In your case you are binding the gridview using DataSourceID="sdsInbox" as well as in gvInbox_PageIndexChanging. Delete one databinding, it'll work.Refer the links:GridView Examples for ASP.NET 2.0: Paging and Sorting...
Answer 7 May 2013   license: CPOL
Try this:private static string GetConnectionString(){ return "data source=.\\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\\IMS.mdf;User Instance=true";}private static void OpenConnection(SqlConnection connection){ connection.ConnectionString =...
Answer 6 May 2013   license: CPOL
Store the table value(from both pages) in session and fetch it wherever it is required. Write LINQ join[^] query to fetch the data according to the need.--Amit
Forum Message 5 May 2013  
I would suggest you to start you Asp.net Journy with MSDN : ASP.NET[
Answer 5 May 2013   license: CPOL
Try this:Page.ClientScript.RegisterStartupScript(this.GetType(), "Error1", string.Format("alert('{0}'); location.href='AddTender.aspx';", ex.ToString().Replace("'", "\\'")));--Amit
Answer 5 May 2013   license: CPOL
Always create your dynamic control in Page_Init event (Read this[^] and this[^] for a detailed information).Change your CS. Try this://Create the controls in this page eventprotected void Page_Init(object sender, EventArgs e){ DropDownList ddlAgent = new DropDownList(); ...
Answer 5 May 2013   license: CPOL
You are already passing Textbox Object and Your Predefined Chars to your function. Match the chars there with key codes[^]. Try this:HTML:JavaScript:function allowChar(textbox, chars){ ...
Answer 5 May 2013   license: CPOL
Refer the link below:How to update controls which are outside of updatepanel during partial page rendering?[^]Hope it helps!--Amit
Answer 2 May 2013   license: CPOL
Did you Google[^] it. Check the top links below:7 things to check to resolve “A network-related or instance-specific error occurred while establishing a connection to SQL Server[^]A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server...
Answer 2 May 2013   license: CPOL
You can format your date in CR. Refer the links below:Formatting Dates in Crystal Reports[^]Switching date format in Crystal Reports[^]Crystal Report Tricks and Tips[^]See the similar threads:CRYSTAL REPORTS: HOW TO CHANGE DATE FORMAT OF CRYSTAL REPORT FIELD FROM ASP.NET[^]How to...
Answer 2 May 2013   license: CPOL
If you are opening a node, you should close it. Try this: 05/02/13 12:37:13 NEW...
Forum Message 1 May 2013  
Oh! I didn't see that. My approval. :):thumbsup::thumbsup: I wish, I could have written for my mind:Mind.AsEnumerable().Where(m => m["EmptyCorner"] == "").ToLi
Forum Message 1 May 2013  
Not enough for an article. Better, post it as a tip. I wish, I could have written for my mind:Mind.AsEnumerable().Where(m => m["EmptyCorner"] == "").ToList().F
Answer 29 Apr 2013   license: CPOL
Try this:SELECT * FROM Table1 WHERE CONVERT(DATE,CONVERT(DATETIME, YourColumnName, 103))=CONVERT(DATE, GETDATE()) AND Name='YourParameter'--Amit
Answer 29 Apr 2013   license: CPOL
You could have Googled[^] for it. See the top links below:http://nareshkamuni.blogspot.in/2012/02/insert-image-into-sqlserver-database-by.html[^]load image from sql server to image control asp.net[^]how to retrieve image from sql server database and show on asp .net image control?[^]how...
Answer 26 Apr 2013   license: CPOL
You could have tried Google[^] for the solution.Refer the links below:Show Image in Listview retrieve from database in ASP.net[^]How To Retrieve Image from Database in ListView Control in asp.net 3.5 [^]How to Retrieve Images from Database into Listview using Eval()[^]--Amit
Answer 25 Apr 2013   license: CPOL
You should encode the datestring. Just replace the "/" with "%2F"Page 1:string s = date.ToString();//Suppose date is "04/06/2013"s = s.Replace("/", "%2F");Response.Ridirect("confirm.aspx? &tariff_id= " + tariff_id + " &total_price= " + total_price+ " &date= " +s);Page 2:string s =...
Answer 25 Apr 2013   license: CPOL
See the basic explanation of your code:Employee a;It's a simple variable declaration of Employee type.new Employee();Invoking constructor of Employee class(Initializing Employee class).e = new Employee();Create object on the heap and invoke constructor of Employee class. Object e...
Forum Message 25 Apr 2013  
You containts looks good. Only because of some silly mistakes you may loss the chance. You should not do that. Any questions related to article you can ask in
Forum Message 25 Apr 2013  
Remove the voting request from subject field. It is abusive. I wish, I could have written for my mind:Mind.AsEnumerable().Where(m => m["EmptyCorner"] == "").To
Forum Message 24 Apr 2013  
You might have disqualified. :laugh: :laugh: :laugh: I wish, I could have written for my mind:Mind.AsEnumerable().Where(m => m["EmptyCorner"] == "").ToList(
Answer 24 Apr 2013   license: CPOL
Get the GridViewRow through the parent of your command source and then try finding the label.Try this:GrieViewRow row = (GridViewRow)((LinkButton)e.CommandSource).Parent.Parent;var id = ((Label)row.FindControl("lblid")).Text.Trim();--Amit
Answer 23 Apr 2013   license: CPOL
Refer the links below for samples:Grid - Custom Paging[^]RadControls for ASP.NET AJAX Documentation[^]Also see similar threads:Custom Paging for Rad Grid[^]radgrid custom grouping when custom paging[^]Hope it helps!--Amit
Answer 23 Apr 2013   license: CPOL
Form must be encoded with multipart/form-data if we want to upload the file using fileupload which is there in updatepanel. Change encoded attribute of form with following code in page_load event of page.Page.Form.Attributes.Add("enctype", "multipart/form-data");--Amit
Answer 23 Apr 2013   license: CPOL
Don't be afraid to use google[^]. See the top 3 links:Pass values from Popup window to parent window using javascript[^]javascript - pass selected value from popup window to parent window input box[^]Passing Value From Popup Window To Parent Window[^]--Amit
Answer 23 Apr 2013   license: CPOL
Raj Wrote:how to call instance method in web method?Since webservice is a static method, it can only call other static methods or new objects.WebMethod:[WebMethod]public static void ResetDate(DateTime TheNewDate){ var thisPage = new Test(); ...
Answer 23 Apr 2013   license: CPOL
Try this:You'll have to modify your loop also.. Style will not work in alert box. Try this:for (int i = 0; i
Answer 22 Apr 2013   license: CPOL
Refer the links for URL rewriteing;[]MSDN : URL Rewriting in ASP.NET[^]URL Rewriting with URLRewriter.Net Simplest Way[^]A Complete URL Rewriting Solution for ASP.NET[^]URL Rewriting with ASP.NET[^]Tip/Trick: Url Rewriting with ASP.NET[^]URL Rewriting in ASP.NET using global.asax and...
Answer 22 Apr 2013   license: CPOL
You should Configure Database Mail – Send Email From SQL Database[^]. You can also Schedule a Job[^] to send mails periodically. Refer the links below:Database Mail Configuration Wizard[^]SQL SERVER - 2008 - Configure Database Mail - Send Email From SQL Database[^]And also check How...
Answer 22 Apr 2013   license: CPOL
Refer the links below: .NET Excel Wrapper - Read, Write, Edit & Automate Excel Files in .NET with ease[^]Also check How to open, edit and save a Excel Document in ASP C#[^].--Amit
Answer 22 Apr 2013   license: CPOL
The action that causes this code to execute MUST be a postback event, and not an AJAX call. This is due to the nature of the way AJAX requests are processed.Check Sys.WebForms.PageRequestManagerParserErrorException - what it is and how to avoid it[^]Hope it helps!--Amit

Page 1 of 28
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web02 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid