Am trying to re-use a function i got from one of the threads on this site. I want to disable an asp.net button when clicked such that a user does not click it several times.
The button is inside an Ajax Updatepanel and also has a ConfirmButtonExtender, but when i click it, it get this javascript error in internet explorer.
**
Erro...
I have dictionary, like
Dictionary<string, bool> accValues = new Dictionary<string, bool>()
And I want to get bool value for specific key. I can do it via foreach, like
foreach (KeyValuePair<string, bool> keypair in accValues)
{
if (keypair.Key == "SomeString")
{
return ...
Hi all,
I have a small issue with ModalPopupExtender.
It opens in an Iframe initially, and shows the page: add_contact.aspx
After I have entered the contact details, the IFrame redirects to the contact_details.aspx page to show what I have loaded.
The problem is when I close that window and click again on the Add Contact Button that ...
Im working on Visual Studio 2008 to develop a web application in asp.net.
if I add a crystal report file (.rpt) in my project, I see only hexadecimal code.
I obviously miss something.
Please help
...
hi all i want to know that we can store information and session information of a user as well as control in three approch 1. View State 2. session state 3. custom cookies so i want to know that in which circumstances we will use following 1. View State 2. session state 3. custom cookies will any one describe importance and use of each
...
i have a grid view where each row has a check box so for all those roes which are checked i want to save in data base how can i achieve this?
do i need to perform separate database operation for each datarow or i can send all row to database at once
do i need to write some special query?
or i can have some temporary table then i can i...
i am uploading image using file upload control.
But it is giving the error,
The SaveAs method is configured to require a rooted path, and the path '~/Admin/ProductImages/images (5).jpg' is not rooted.
string strBigServerPath = "~/Admin/ProductImages/";
string strFileName = "";
string ImageName = "";
...
Hi there,
Simple one here... is there a clean way of preventing a user from double-clicking a button in a web form and thus causing duplicate events to fire?
If I had a comment form for example and the user types in "this is my comment" and clicks submit, the comment is shown below... however if they double-click, triple-click or just ...
In my namespace I can have public classes which are accessible to all other pages in my namespace. How do I go about having public functions? Do I have to create a class with the functions in it? Or is there an easier way?
...
I'm using a lot of LinkButtons in my web application with text and images inside them.
All LinkButtons are set with a ToolTip and all images inside the LinkButtons are set with an alternate text.
<asp:LinkButton CssClass="button button-input" ID="btnSearch" runat="server" CausesValidation="False" ToolTip="Search">
<img id="imgSearc...
Hi all,
I'm wanting to secure ELMAH in an internet facing application. The system uses Forms Authentication, but doesn't currently have any non-user accounts (e.g. Admins). The user accounts are set up in an automated fashion.
I don't really want to shoehorn any admin accounts into the system (the current DB schema for the users would ...
How i could read content of microsoft word file saved on amezon s3 using C#.net for web application
...
I want to know in which format information is stored in view state, as it is quite useful for storing information during multiple postbacks.
...
I am having 2 web formsand will have a drop down list on those web forms. If i select a value from drop down and click on ok i will get tranfer to next page. In that page i will have a drop down with the same values in the previous form . What i need is i would like to disable the selected value in the previos form and would like to disp...
Hi,
Im trying to figure out how can I make singelSelection on ASPxGridView.
The onClick event handled like that:
function GvUsersSelectionChanged(selectedRow) {
//Clear the text selection
if (GvUserClient.IsRowSelectedOnPage(selectedRow.visibleIndex)) {
GvUserClient.SelectRow(selectedRow.visibleIndex, false)...
What is the recommended folder to write the web application log files?
c:\inetpub\wwwroot\Logs, App_Data folder... ?
...
I am using asp.net webforms; I want to submit a form and keep the button disabled until it gets saved to my database, exactly like Stackoverflow. Any suggestion?
protected void Lb_Save_Click(object sender, EventArgs e)
{
//disable my button
//Do a DB insert
//enable my button
}
EDIT:
I'll do a client-side validation fir...
I am having a grid view which have 100s of record to insert in sql server data base for all checked check box of each row what is the best method to do this so that even performance won't degrade.
If htere is some sql query for sql server 2005 please let me know
...
I want to know why we must set the serializable attribute to save an object in view state.
Also, which type of objects can we store in view state?
...
Hi
Is is possible to force Grid view edit mode without using object data source, I set EditIndex, but the Edit template is never shown till I change the binding to ObjectDataSource
Thanks
...