I had gridview which retrieve Products from database by sqldatasource1 ,and my manager asked me to filter this gridview by DDL to filter gridview with specfic Model ,I add some function on gridview as edit,paging .I did my code well and gridview filtred by the Model_Id which come from DDL .But when I tried to edit any product or navigate...
Is it possible to customise how the grid lines appear. I have two charts one shows daily data - with Time as x axis. I would like grid-line to show on the hour or for example every 2 hours. In the second chart the x axis is across a date range so I would like grid-line to be for every day or for example every 5 days.
...
Hi, everyone!
I'm trying to send mail in ASP.NET web-site. I have smtp configuration section in web.config file. How can I configure it to send mail from everyone to everyone?
...
Hi, I have to start a thread to do some long running task in the background (even if the browser is closed) without waiting for a response on a button click event of a web page and be able to stop that later if user wishes to do so. how can I do this? is it possible to store the id of the thread in database and abort it later? do I need ...
I am receiving an error in the hosted app and am trying to understand why the error is happening.
For this i look at the stack trace on the error page, which is as follows:
[
NullReferenceException: Object reference not set to an instance of an object.]
MBANinja.demo.DemoTestPage.Page_Load(Object sender, EventArgs e) +696
Syste...
I got a webpage where members can download different kind of files on. I wan't to get information about which files and how many times each member have downloaded. when the user want to download a file he get browser pop-up where he gets 3 choises: "Open", "save" and "Cancel".(file dialog box in browser). i want to update the download st...
A nice good afternoon from Germany,
I have a asp:GridView and ButtonFields on the row with a RowCommand event.
protected void gridView_RowCommand(object sender, GridViewCommandEventArgs e)
{
switch (e.CommandName)
{
case "FirstButton":
this.DoSomething();
break;
case "SecondButton":
...
I am using sql server 2005. In this query i want the log-in user detail should also display but it is not displaying .
So please modify the query so that log-in user detail should also display with the help of session[userId].tostring();
Query written by me is:
SELECT DISTINCT MUDMEMBER.PK_ID, MUDMEMBER.EMPLOYEE_ID, LKB.BANK_NAME, MUH...
I'm trying to use Response.Redirect(1019characterLongUrl) to redirect the user to another domain.
The URL I use is +1k characters long. This works perfectly in Chrome and Firefox. But as soon as I use Internet Explorer the hostname of the url is exchanged.
If the URL I use looks something like: https://a01-bc-def.com/myDirA/myDirB?myQu...
I would like to know this so that I do not call Page.IsValid before it is naturally available.
...
I have a gridview with one column of checkboxes and other columns with different custom controls .
What I want is that when a checkbox is checked an event is triggered which toggles the visibility of other elements in the row .
...
Hi
in my web app users login to website normally and they have tagged in user table in database as online user in Session_End i want to log them out
In Session_End i have no access to HttpContext.Current.Session or Session only
they are both null how can i access to session variable at (Session_End) event.
...
As you may already know, when the Enter key is pressed within an ASP.NET Web Form that has multiple single-line textboxes, the form will submit and the Button Web control that appears first in the HTML page's markup will have its Click event fired.
For eg, I set focus on a textbox and press "Enter", the form submit automatically and the ...
Hi all i have a datagrid which has 10 rows in each row there is text box i want to fill that txtbox from database.
text box is inside the grid..so can some one help he how to fill that text box
...
I have a handler CsvExport.ashx that resides in the root of my web application, the problem is it is called from a javascript include so I can't use ~/ how can i have it so that any call to a file name CsvExport.ashx in in folder in the web application get sent to the proper file?
...
In my .net app, I redirect to an error page if an error occurs.
It works fine on my local IIS.
When I deploy to a web server, IIS7, it redirects to the error page, all fine, but these is text added to the error page
"The page cannot be displayed because an internal server error has occurred. "
Could this be added via IIS7? It doesnt ...
Hi, in a GridView (ASP.NET/C#), I have a number of template fields - the 2 ones relevant to the question are 'checkbox1' and 'quantity'. The checkbox starts off as unticked for every row, and the quantity starts off as disabled for every row. But when the user ticks one of the rows checkboxes, I need a piece of JavaScript or something to...
I have a Page, containing an UpdatePanel and a Usercontrol which loads another usercontrol, containing a textbox.
So it's Page->UpdatePanel->UserControl->UserControl (B)->Textbox
The ValidationGroup for the button and textbox is the same. I call .validate("answer") in the codebehind, I'd rather not use the JS validation. If the button...
Hi - I downloaded and setup MS's Stock Trader app. I'm running Vista Ultimate, IIS7, VS 2008 / .NET 3.5. The entire app is about 120 MB so is quite involved but it all seemed to setup fine from the msi. When I run the app and try to login I get a javascript error after clicking the Login link:
WebForm_DoPostBackWithOptions is not define...
Is there a fast way to get the scheme, host, port (only if not 80) and application path in ASP.NET?
As far as I know, I need to assemble the following pieces:
Request.Url.Scheme
Request.Url.SchemeDelimiter
Request.Url.Authority (although that will probably always include the port even when it's 80)
Request.ApplicationPath
Isn't ther...