Category Archives: Programming

Tthis category is for Programming related issues

Auto Focus the Element (Button Textbox etc)

hi friends, some times you need to set auto focus to certain elements and usage of Default button in asp.net panel may not work. JavaScript set focus may not help you  so in that situation please find the appropriate solution … Continue reading

Posted in Articles, Programming | Tagged , , , | Leave a comment

Finding which Control has caused PostBack in C# asp.net

Hi friends today iam going to post a Demo Code which demonstrates. which control have requested the post back generally while using Ajax mostly we get postback with out getting into page life cycle and some times we need to … Continue reading

Posted in Articles, Coding, Interview Questions, Programming, Uncategorized | Tagged , , , , , | Leave a comment

Accessing controls of the Master Page from the Content Page

Accessing controls of the Master Page from the Content Page In my master page, i have a Label1 control. In the Page_Load event and if the page is not gone for postback event, in that situation, this Label1 is initialized with the day of the week. In this … Continue reading

Posted in Articles, Coding, Database, Programming | Tagged , , | Leave a comment

Making DropDownlist Selected Automatically on giving value

s if there eexists one Drop downlist and  if it have values from dataset say Ds and that dataset ds is having a table named Ab with 2 columns a)TextData  b) ValueData so we will set our data set like … Continue reading

Posted in Articles, Interview Questions, Programming | Tagged , , | Leave a comment

Getting all checked checkboxes from Treeview in asp.net using c#

if i have a Treeview like this image and if i want to track all the lable names of check boxes which are checked into textbox like this then i have to write my code like this ArrayList al = … Continue reading

Posted in Articles, Database, Programming | Tagged , , | 2 Comments

Providing hyperlink to GridView Contents

if i have a to write programe such that the file location comes from database and i need to provide hyperlink to it in gridview i will do like this <asp:TemplateField HeaderText=”Download”> <ItemTemplate> <a href=”/GO notifications<%# DataBinder.Eval(Container.DataItem,”File_path”)%>” target=”_blank”>Download</a> </ItemTemplate> </asp:TemplateField> … Continue reading

Posted in Articles, Programming, Uncategorized | Tagged | Leave a comment

Fixed Validating Date Less than Today using DOTNET

To Validate Date entered by user to check wether it is “Less than Todays Date” we can use Compare field validator like this  <asp:CompareValidator ID=”CompareValidator1″ runat=”server” ControlToValidate=”Date_Txtbox” Display=”Dynamic” ErrorMessage=”Date Should not be Greater than Today” Type=”Date” ValueToCompare = ‘<%#DateTime.Today.ToShortDateString()%>’ Operator=”LessThan” … Continue reading

Posted in Articles, Programming | Tagged , , , | Leave a comment