In my application i have a url in the format
www.abc.com/mypage#yourId=ASDF2345.
How can i read back the value of yourId parameter from the Request object in asp.net , c# ?
If it would have been
www.abc.com/mypage?yourId=ASDF2345,
then i would have got this from the QueryString collection in the Request object. But there is a # be...
In my website I've two pages called First.aspx and second.aspx.
From first.aspx I'm redirecting user to second.aspx clicking upon a link.
In second.aspx page, I'm using javascript:history.back() on click of a cancel input button (not asp button). This is done to avoid reloading of last page as user has not done anything on this page, a...
My understanding is asp.net pages are grouped in folders and each folder is compiled into a dll file. However when a page is requested the first time, only that page is compiled? So is it possible to compile part of a dll file? And when a page is requested, is it only the page's code within the dll file is executed, but not the whole dll...
I am working on a project which creates controls dynamically for a form in the page_load event, loads in their current values from the database and saves their values (using FindControl) when the user clicks the continue button.
When I added a control statically in the .aspx page and followed their same procedure of loading the value in...
hi,
i am getting values from .cs to script but i want to send data from script to .cs page
i have tried this,but it is not working.
<script type="text/javascript">
$(document).ready(function() {
$("hfServerValue").val("From ClientSide!");
});
</script>
<asp:HiddenField ID="hfServerValue" runat="serve...
Hi All, Im just wondering how you go about creating dynamic properties on entities that generated from a database generated model.
For example I have a UserInformation table. In that table it has basic information on the user (well derr) like user name, address details etc etc. I want to add a readonly property that concatenates the use...
Please can you tell me the units measured by InputFile.PostedFile.ContentLength . I need to make sure the file is less than 500k.
Thanks.
...
I have a login module in my webpage from where i want to redirect every user to a common page but their accessibility should vary on the same page,..some of them should get 10 links on that page whilw some should get 20 links on the same page...
Can anyone help me out...
...
Let's say "www.mysite.fr/home" is the URL ..Now how do I fetch "fr" out of this ? JUST "fr"
actually what I am trying to do is change masterpages at runtime after detecting a visitor's country..Yes I can use the countryCode variable which is there in some other class but thot may be I can do it like this only..just wanted to try..logic ...
I have a web page that will display an image.
I created a folder within my website called 'photo' and uploaded that image to that folder using the following code:
string path = Server.MapPath(@"~/Photo/");
FileUpload1.SaveAs(path+FileUpload1.FileName);
I am using the following code but the image is not being di...
Hi every1,
I have a question about the ASP.NET Updatepanel.
My problem is that I will set the focus on a textbox after loading the datasource
in the Updatepanel.
How can I control it ? The best solution for me is the option with JavaScript. But it's not mandatory.
Thank's for help !
...
Hello,
I have a problem on my website when i am trying to access a product with a space followed by a slash. It does not work. Just using a space in a articleno works fine, but when the space is followed by a slash it does not work. Any ideas to why this is? Is it the IIS:en not knowing how to route? Or is it the browser treating space,...
Hi, I am trying to filter some data for a GridView Controls using a DropDownList Control.
I am using EntityDataSource from EF 4 to query the Conceptual Model.
I am not able to visualize in GridView my data when selecting the DropDownList (Where Entity SQL), nothing happen in the page and only the DropDownList show /( the GridView(.
I d...
ok so I created this master page file and in its Page_PreInit added the code to change master page at run time after detecing a visitor's country:-
Now, while researching I came across this thread that says "Setting the master page in Page_PreInit event is against the design and spirit of MVC..what is this supposed to mean ???
If not ...
Hi
I would like to create a webpage which can handle user events like page navigation and page close. And also I would like to handle the event on server-side coding.
Anyone please provide me suggestion.
Thanks in advance.
...
Hi,
there are several tutorials that explain how to use EF data annotation for forms validation using the MVC framework. And to use jquery for the client side.
See e.g.: http://dotnetaddict.dotnetdevelopersjournal.com/clientvalidation_mvc2.htm
I would like to achieve the same, but without using MVC/MVC2.
I want to build a classic asp...
I'm currently setting up my website on a new SQL Server 2008 server, however I'm getting the following error:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately....
I'm trying to get my content page to be able to access an ASP:Literal on a master page.
I have my content page as:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="viewProduct.aspx.cs" Inherits="AlphaPackSite.viewProduct" Title="Hi there!" %>
<%@ MasterType TypeName="Main" %>
Then my master page called Main.master has:
<asp...
I have a web app containing a silverlight application.
How do I keep the ASP.NET session / Forms Authentication alive when the user is using the silverlight application?
...
Hi, I've got a routine that tries to import files from an import directory, spitting them out to an Error directory if the import fails. The Error directory is shared and users have access permissions to delete files in there, so they can try to fix the problems and then move the files off to the import directory again. I use File.Move...