asp.net

how to access the instance variables of one class to be used in another class ?

Suppose we declare and define the variable in one class let say FirstClass and we want to use that variable in another class let say SecondClass which is outside of FirstClass .how to do this? ...

can i capture actual address bar url in asp.net

Help me please. How could I get the url from the address bar. Im using c# for this. for example: if I type www.google.com in my address bar, then i would get "www.google.com" caption. ...

ASP.NET Live Webinar and Streaming video platforms

One of my customers wants a live webinar platform that would allow users to interact with the presenter via live chat. I am aware of a streaming video platform from a company called XIGLA, but I don't think that provides the Live Webinar/chat functionality. I was wondering if there is already anything out there that does this out of the...

Database documentation

Can anyone suggest me the format of how to make and analyse database documentation. ...

can i hide our address bar url in asp.net

help me, i want to hide my address bar url in my asp.net website. ...

Error: Access Denied: (403) Forbidden?

hello friends, what is the solution of this type error reply soon ...

can i make fck editor dragable?

hello friends, i want make FCK editor drag able in my asp.net application. drag FCK editor with mouse pointer movement. ...

Unable to get the Datakey value of a selected row in GridView for use in FormView

Hi, I have a gridview like this : <asp:MultiView ID="MvCustomer" runat="server" ActiveViewIndex="0" > <%--View 1 to List the customers--%> <asp:View ID="VwCustomersList" runat="server" > <asp:GridView ID="GvListCustomer" runat="server" AutoGenerateColumns="False" HorizontalAlign="Center" DataSourceID="OdsGvCustomers" DataKeyN...

Skin theming and CSS Class

If I am assigning a paricular css class to a control ,it hnherits the class but if i simultaneously give the skin id to the same control then this skin ID overrides the CSS class. Why this is happening? Now if I am using !important in the css stylesheets then css class property is inherited by the control. .lblUserName1 { width: 40...

Use a different charset for some specific requests in ASP.NET

I'm now using UTF-8 in my web application, but some clients would POST data in other charsets like GB2312. I can't set the <globalization requestEncoding="GB2312" /> because it would affect the whole site. Can I use a charset for decoding the data for specific requests so that I can get the correct text via context.Request.Forms collec...

How to make gridview header fixed when overflow property is enabled

I want user to be able to scroll in a div to see all the rows. But setting div's overflow property to true. When I starts scrolling header goes away. Is it possible to make header static. So that I can sort or do any kind of other operations. Currently I tried to take fixed table above grid and hiding grids header. But on editing it is ...

Page Validation, Submit Button is not part of the usercontrol

Hi, I have some fields to be validated on the server (CustomValidator) which is in a separate user control and my Submit button is in the page not in the user control. What I have done is, I placed all my Validation Methods in the code behind of my usercontrol (ascx.cs) and the page validation is in the code behind of the page (aspx.cs)...

button properties:- commandName and CommandArguments

What is basic difference between CommandName and CommandArguments properties which is used in Button Control tool.How it is used during programming (using C#)? ...

Controlling flow in ASP.NET with return;, don't render the rest of the page.

Hello, this question should be fairly basic. I want to control the flow of an ASP.NET page -- if a certain condition is met, I want to write out an error message and stop drawing the page. However, I also want ASP.NET to output correct HTML (i.e. not cut off in the middle). Right now I am doing this: if (condition != what-i-want) { ...

AjaxControlTookit Masked Edit

I'm trying to create an textbox with a date input mask, such as "dd/mm/yyyy". The mask should be displayed before the textbox gains focus and when the user enters the date, the mask should still be displayed but be automatic overwritten with the entered numbers. I tried looking at the Ajax control toolkit, which works fine except that I...

Error in reading a uploaded .xls excel file in asp.net

Hi, I have made a program where I read set of records from the database and then save it in a datagrid. From here I make the user download the file as a excel file. Now the user make changes to the file and then upload it again and from here I read the uploaded .xls file and make the necessary changes in the DB. The problem is wheneve...

What is a reliable way to run time consuming tasks in ASP.NET MVC2

I need reliable way to run 10 different tasks simultaneously. For instance the first one would be sending emails, while the next one is cleaning rows from a specific table... so on an so forth. I've used the Thread class and while it works well on my development machine (VS2010 internal web server) non of these threads seems to be worki...

How to solve this javascript error, I am using ToolScriptManager for UpdatePanel

I am trying to register below mentioned javascript for using with GridView to add freeze functioality on GridView. When compiling an error is thrown Microsoft JScript runtime error: 'Sys' is undefined How it can be fixed. <script language="javascript" type="text/javascript"> // This Script is used to maintain Grid Scroll on Partial...

How to remove returnurl from url?

I want to remove "returnurl=/blabla" from address bar when a user want to access to a login required page. Because I'm trying to redirect the user to a static page after login to do some selections. How can I do that? ...

Password and confirm password

I have a password and confirm password field and I dont want the user to simply copy from the first field and paste in the later field.What should I do for this?? ...