|
Thank you! You are absolutely correct (yes, I rebind the datasource). I was seriously about to lose my mind. It never occured to me that that could be an issue.
Time is the fire in which we burn.
|
|
|
|
|
Hi,
I want to upload multiple image files from within an InsertItemTemplate within
a FormView. That Formview is placed in an UpdatePanel. I searched the net for
2 days to find answers to my problem. I am aware that a full postback is required
to make the asp.net FileUpload control work and that a PostBackTrigger has to be set
inside the UpdatePanel. My problem is that the PostBackTrigger button that I place in
the Triggers section of the UpdatePanel can not be found since it is declared in the
InsertItemTemplate. Can this be solved some way. I have read that in this case it is
better to use an AJAX AsyncFileUpload control, but I can not find any examples where
multiple files can be uploaded. I doubt that this is the best way to solve my problem
since the upload starts immediately after a file on the local file system is selected.
I want to start the upload only when the Insert Button inside the InsertItemTemplate is
clicked and therefore do the handling in the ItemInserting event of the FormView.
Can anyone please point me to an example where this is done. I can not imagine I am the
only one having this problem.
tia
|
|
|
|
|
I come from China, the English not very good, but I have an example, I use e-mail sent to you, this example can run, you can serve as a reference. Please tell me your email address.
|
|
|
|
|
|
Email: paperke67@hotmail.com
tia
|
|
|
|
|
People hardly have time to read your whole story. Please be precise what exactly you need.
If you need multiple file upload control, follow the link:
Multiple File Upload User Control[^]
|
|
|
|
|
Hello ,
I want to block some IP number to access my site
In IIS6 I know but in IIS7 I am unable to find option to block
the IP
Thnks.
|
|
|
|
|
In IIS7, for it a role has to be added. Go to Server Manager > Roles > Add Role Services. Under Security node in the Role Services tree there is an option for IP and Domain Restrictions.
|
|
|
|
|
Hi,
optional you can build a ASP.NET HTTP-Module to have your very own, custom made IP filtering.
When in trouble,
when in doubt,
run in circles,
scream and shout
|
|
|
|
|
Yes, we can have our custom module to implement any specific requirement.For normal scenario we can use the one, that is already provided
|
|
|
|
|
|
Hi guys, I have a tiny misunderstanding in implementing my session timeout.
I have a asp.net solution with three pages, Default.aspx, Logout.aspx, and Home.aspx, ofcourse all these share the same web.config file.
In my web.config I have:
<pre>
<!--this is my logout implementation-->
<authentication mode="Forms">
<forms loginUrl ="Default.aspx" timeout ="1" requireSSL="false" path="/" defaultUrl="Default.aspx"
slidingExpiration="true"/>
</authentication>
<authorization>
<deny users="?" />
</authorization>
</pre>
and
<pre>
<location path="Home.aspx">
<system.web>
<authorization>
<allow users ="?"/>
</authorization>
</system.web>
</location>
</pre>
but only the Default.aspx is timing out and refreshes. But I want that to happen in the Home.aspx, when no activity is received it must redirect to the Default.aspx.
I know I am messing up somewhere, can anybody help me please???
Thanks
M
|
|
|
|
|
|
sashidhar wrote:
MorgSim wrote:
timeout ="1"
Whats This..!
theat is my timeout in minutes, that's just testing man
|
|
|
|
|
Thanks though I will go through your link
Morg
|
|
|
|
|
Hello,
In the "location path="home.aspx..." section you
say that all anonymous users have access to this site (by using allow=?). Use deny instead of
allow:
<location path="Home.aspx">
<system.web>
<authorization>
<deny users ="?"/>
</authorization>
</system.web>
</location>
Otherwise, this page is not protected. Also, dont mix session and forms authentication timeout.
Hope i'm right and this helps.
|
|
|
|
|
Hi,
I have a grid view to which i am binding data from the employees table.
I am also displaying first name and last name in grid view. now i want the first name and last name under one main sub header name. Below is the example.
EmployeeId ContractNo ContactNo EmployeeName Summary
First Last
----------------------------------------------------------------
E001 Co123456 900878634 Xyz Abc PQR
I the above example i want First and Last below the EmployeeName as a subheader, means EmployeeName acts as a main header for First and last.
I also need to provide sorting on EmployeeName.
Can any one suggest me a solution by some code example or some useful link regarding this in order to provide subheader inside one main header in the same format.
solution will be highly appreciated.
Regards,
Pranav Dave
|
|
|
|
|
|
|
Hi,
I have a web page that uses the AJAX framework. Basically you choose something in a dropdown and click a button and the page is partially refreshed to show a gridview(which is inside an UpdatePanel with the trigger as the button). You choose a different option and click Go, the gridview is updated accordingly.
Now, I want to use sqlcachedependency in codebehind (since I'm not using SQLDatasource and doing it all programmatically). In my code, I have the code to populate the dropdown in Page_Load and in the Gridview_Load, I create my SQLCommand object. I found the following code and seems pretty simple:
SqlCacheDependency dependency = new SqlCacheDependency(comm);
int expire = 3;
DateTime exp = DateTime.Now.AddMinutes(expire);
Response.Cache.SetCacheability(HttpCacheability.Public);
Response.Cache.SetExpires(exp);
Response.Cache.SetValidUntilExpires(true);
Response.AddCacheDependency(dependency);
But the question is, where do I put the code to ensure the DB isn't queried and data is actually retrieved from Cache??? Should I put it before or after my SQLDataAdapter.Fill in Gridview_Load? Or is it somewhere else?
Thanks in advance
|
|
|
|
|
|
Hi guys,
I want to check in my application the expiration of session in order to demand the user to reconnect.. or just lock the current page.
I'm using the code in example Prevent Session Timeout in ASP.NET[^] wich work great.
At the end of session I show an Ajax modalPopup asking for reconection..but.... from my pages I can open popup windows to continue edit data.
Then, the problem is:
I have a main page with javascript code running decrementing the session time, when I open a popup window the session timeout restart but the javascript in main page continue counting the old timeout.. So, I get main page locked when I'm using popup windows.. and when session is stil active.
I need a way to restart the javascript in main page, or better, to really check if session is valid from javascript code in the main page before to lock the page.
any hint ??
thanks a lot
|
|
|
|
|
|
Yes, sure, I can do it, but I'm looking for some other solution to keep independient popup windows from parent.
I have a lot of popup windows to implement it.. so I would like to do it once in the parent.
Thanks anyway.
|
|
|
|
|
Hi Guys
I'm a bit of a newb to the joys of ASP.NET, and I have a bit of a problem...
I'm trying to use windows authentication with my app as it's intended for intranet.
I have the following in my main web.config:
<authentication mode="Windows"/>
<authorization>
<allow users="*"/>
<deny users="?"/>
</authorization>
And I have the following in the config file of a directory that I only want certain users to see:
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<authorization>
<allow users="unswortp"/>
<allow users="HO\unswortp"/>
</authorization>
</system.web>
</configuration>
My problem is the restrictions on the folder will not allow me to get into that folder when deployed to the IIS server, although it works fine on my development machine. I cant help but think that the Windows Credentials it is using are not on the local machine, but on the server, so once deployed to the server, I have no chance.
Am I doing something wrong? or is this just the way the windows authentication works in ASP.NET Apps?
Is there something else I need to set up?
Also, how would I pluck the Windows Username of the end user programatically?
oooo, the Jedi's will feel this one....
|
|
|
|