Following article is much help... Dependency Injection for Loose Coupling[^] Thanks, Padmanabh
Padmanabh Ganorkar
Posts
-
Loose coupling -
Suggestion RequiredException handling is always better
-
Web config connection?Hi, You have not posted the code you wrote in Web.config file. Secondly Please note and correct the syntax for accessing the connection string from web config in C#
con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);
Thanks Padmanabh
-
Applying css styles to UpdateProgress bar controlWait... Here if you know css and all. you can code any HTML you want instead of "Wait..." Or simply put an animated .gif to show some progress is going on.
-
[Message Deleted]Did you host your Web Application on IIS?
-
User Control in Master PageHi Thomas, Add following code where you update the Session variable.
Response.Redirect(Request.Url.ToString());
Thanks, Padmanabh Ganorkar
-
plz do replay i am facing problem since last working dayImport the Database in Visual Studio? IN Visual Studio we connect the Sql Server Database and do not import it. dont get confused.
-
Carousel in SilverlightI need to build a custom Carousel in Silverlight and C# If somebody has done any research on it then please suggest me references that would help me a lot. Thanks
-
Display Word Documents in C#Hi, Here if your context is Asp.net then do as following create an iframe
<iframe name="iframedoc" frameborder=2 width=580 height=440 src="title.html"></iframe>
create a link also
<a href="your_doc.doc" target="awindow">Open</a>
clicking this open link will show a command box to save/open document, click open..then document will show in browser You can also handle this in C# put runat property in
<a>
-
Cant able to edit .net souce code.Last thing I can suggest is 1) Create a blank solution. 2)Under it create a new Web Project. 3)The Directory structure will be created. (Have this directory structure seperate from your current structure) 4)Under that copy paste the aspx and aspx.cs files, images files, App_Code files etc. 5)Whatever dll references you have given redo them again in your new Web Project. 6)Do all your web.config coding again either by Configuration tool or by hand. 7)If you have other class liabrary projects for the same Web Project then you have to do the same steps for these projects as well. Build these class liabrary projects individually. 8)Reassign the reference for these projects in your Web Project 9)Build the entire solution and check. If this does not work then only seniors there can help you.
-
Cant able to edit .net souce code.Ha Ha Ha No programmer in the world has loose deadlines. Creating the new Web project didnt work. Creating new files in new Web project didnt work. Then I am having a feeling that... May be some of your files have gone corrupt.
-
How to do Silent Remote Instalation in >net ?To run an .exe file on client side without informing the user / os is similar to any virus activity. Normally the client browsers + OS sense the .exe files trying to execute and blocks it asking user either to go ahead or not. Programmers who have tried infecting client computers may help you but this is not good.
-
Cant able to edit .net souce code.Hi Raviraj, Strange. I didnt face such behaviour in past. Well, do one thing. If your Website does not have huge number of files then create a new Website project and add your old files one by one. Then try to build the complete website and check what happens. Thanks, Padmanabh
-
Cant able to edit .net souce code.Hi Raviraj, Delete that .csproj file. Go to Visual Studio or Visual WebDeveloper Express (whatever you are using). There Go File-> Open Website. Then Browse your website folder (the one having web.config on root). Open the website. Try this. This May work. Thanks, Padmanabh
-
Help need in gridviewHi Senthil, You can use GridView's RowDataBound Event for your task. The RowDataBound Event is raised while binding each and every row from DataSource. Here you can check the string length and do the stuff you want to do on it.
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { // Suppose 4th Cell has your huge Text if (e.Row.Cells[3].Text.Length > 150) { // Write Truncating Logic Here } } }
I Hope This Helps. :) Thanks, Padmanabh -
Adding Programmatically Buttons to an asp.net page...Hi, 1) If you need the asp.net button only then - Make sure your Javascript function returns false or write like this
button.OnClientClick = "javascript:function(this); return false;";
-
If you can use a HtmlButton then -
HtmlInputButton somebuttonhtml = new HtmlInputButton();
somehtmlbutton.ID = "somehtmlbutton";
somehtmlbutton.Value = "ContextMenuItem";
somehtmlbutton.Attributes.Add("onclick", "javascript:function(this);")
ValueListPanel.Controls.Add(somehtmlbutton);
I suggest to use HtmlButton as it satisfies your requirement and it is light weight. Hope this will help. Thanks, Padmanabh
-