|
On any event use
TextBox1.Text=Request.QueryString(Id of ur query string)
|
|
|
|
|
Hi,
I very need your help.
I'm doing a site in russian language and have problems with encoding.
I have this in my web.config:
<system.web>
<globalization requestencoding="utf-8" responseencoding="utf-8" culture="ru-RU" uiculture="ru-RU" /></system.web>
and then this in my MasterPage:
<head id="HeadElement" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
and in the default.aspx, I have this:
<![CDATA[<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" CodeFile="Default.aspx.cs"
Inherits="Default_aspx" Title="Welcome" ResponseEncoding="utf-8" %>]]>
But it doesn't display properly the russian text in the ContentPlaceHolders within the default.aspx....
could you please tell, how can I solve this question?
|
|
|
|
|
oops, it didn't show the code from web.config, here it is:
<system.web>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="ru-RU" uiCulture="ru-RU" />
|
|
|
|
|
Is your browser has UTF8 encoding set?
|
|
|
|
|
yes.
By the way, the text in aspx file is written with HTML, like this:
<asp:Content ID="SecondBarContent" ContentPlaceHolderID="SecondBar" runat="server">
<div id="crumbs_search">
<p>
Поиск:
</p>
<p>
|
|
|
|
|
IF I WANT TO ASSIGN AN IMAGE FROM SOME OTHER LOCATION TO IMAGE CONTROL IN ASP.NET. THEN HOW TO DO THIS?
SUPPOSE, MY APPLICATION IS IN C: and I WANT TO ASSIGN AN IMAGE FROM D:, HOW TO DO THIS.
SHOULD I USE FILE.COPY or WHAT?
PLEASE HELP ME.
|
|
|
|
|
salman_syed_01 wrote: SUPPOSE, MY APPLICATION IS IN C: and I WANT TO ASSIGN AN IMAGE FROM D:, HOW TO DO THIS.
You can't. It might work on a local machine, but not on a server. ASP.NET can access only the website area and not your C and D drives.
|
|
|
|
|
You asked this already. Didn't you like the correct answer?
Once again, a web application can only access files in its own directory structure, it CANNOT access other drives. This is a basic security concept.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
how can we get the value entered in text box as output in pdf format
i am getting the whole values in the database but how to display the value thhat is entered inthe textbox directly
|
|
|
|
|
You have to use some kind of PDF conversion libraries. Itextsharp[^] is an opensource project. Try that
|
|
|
|
|
plz help me in this :
Image.ImageUrl = GetImagePathFromDB(); // D:/Images/box/1.jpg
My Web application resides in C:/ directory and i want to assign the image at run time from D:/ as give the path.
how to assign this 01.jpg at run time using the above code.
This is not working. Please help me , this is urgent.
|
|
|
|
|
the image u try to assign to the image control must be within some directory of ur application. It goes to show that ur lacking the basic concepts of how a web application works. You gotta understand that its not a desktop app that u can access virtually anything on ur whole PC.
|
|
|
|
|
Copy the images to your application directory then use ~/Imagefolder/imagename. "~/" will take you to the root directory of your application.
Mohammad Al Hoss
Development To Me Is A Pleasure more than a Job
|
|
|
|
|
how can i pass query string when giving hyperlink to text and in its properties(hyperlink) giving URl of next page (detail.aspx) and then in detail page usging that query string value access data dynamically from database (using control ,datalist)
means what would be query
like
select * from p_table where dvd_id="querystring" //how to do this..?
|
|
|
|
|
"select * from p_table where dvd_id="+Request.QueryString("QSID");
But be aware of SQL Injections.[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
These pictures are generated in my application.And i have stored in local.
Now i want to export these pictures into a word document!
Because using the DCOM must identity in web.config.This is dangerous in a server.
So what can i do?
|
|
|
|
|
HI friends,
I have a web form with several controls I'm posting to a database. For two of them(textboxes) I'm looking up the values using a popop window, so the user cannot edit the actual textboxes values, they have to go through the lookup process, which populates the controls.
What is happening is that everytime I set the readonly=true or the enabled=false for these textboxes, the ViewState seems to not store their corrent values.
In both cases when I do the postback and the page comes back, the control shows up the the previous value, not the one I posted back with the page otherwise it will show the correct value(readonly = false; enabled = true)
This is the asp.net code for the textboxes:
<asp:textbox runat="server" id="txtSentBy" enabled="False" xmlns:asp="#unknown">
Any idea on this?
|
|
|
|
|
I think that's not the issue
Issue might is with updating the text box with new value.
Debug the application by putting break points and check what is happenig
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
Hi, thanks for looking
How can i add a provider for the session state as one can do with the profile providers??
Example:
<providers>
<add
name="SqlProvider"
type="System.Web.Profile.SqlProfileProvider"
connectionStringName="LocalSqlServer"
applicationName="AppName" />
</providers>
This gives me error on conectionStringName and applicationName when i add it inside the sessionState
Im using this:
<sessionState mode="SQLServer" timeout="30" cookieless="AutoDetect"
allowCustomSqlDatabase="true" sqlConnectionString="..." />
But i would like to control my connectionstrings from the connectionstrings section
Thanks in advance
Alexei Rodriguez
|
|
|
|
|
Hello All,
I want to implement autosuggest textboxes in my website. I studied from the site: http://www.webreference.com/programming/javascript/ncz/ and implemented thier algorith as well. But it is not working. I want to generate the suggestions from the records of my database. Do u have any idea how can I play with AJAX and MS SQL ?
Thanks in advance
|
|
|
|
|
AJAX toolkit has an autocomplete extender. Try that.
|
|
|
|
|
I am on a project that is using MVC for ASP.NET.
I want to validate which release of System.Web.Mvc currently exists in the project (release 3, release 4, etc.).
Does the MS release number have any correlation to the AssemblyFileVersion attribute that they assign to the assembly?
This is the AssemblyFileVersion that currently displays for System.Web.Mvc through Reflector:
[assembly: AssemblyFileVersion("1.0.30714.0")]
Is there any correlation here or is there another way to validate the MVC release number?
|
|
|
|
|
Hello everyone, I am a entry-level programmer that is having some trouble and hoping you guys can help me out. I am trying to add active directory authentication to an existing website. However every attempt has resulted in multiple errors. I was hoping someone could help walk me through all the areas that need to be changed, in the code as I said i'm an entry-level so I need to learn as much as I can. Thanks in advance to all that contribute to this solution. Which pages should I upload for you guys to get an idea of whats going on...I assume you need web.config as well as the C# login page code? Is that all...
|
|
|
|
|
I am designing an admin page to insert/edit information into a MS-SQL database. When I enter my page in 'edit mode' my DetailsView layout is fine and my TextBoxes are about 80%. When I enter in 'insert mode' however, my layout is not so nice, the TextBoxes shrink down to about 20%. I have been searching for a way to fix this and nothing is working. I have a feeling this is a very easy fix and I am just missing it. I would appreciate any help I could get on this, thanks in advance. I have included a portion of the code, I tried to keep it as small as possibe and still show enough information. Again thanks in advance.
<pre>
<asp:DetailsView ID="detailsCatagory" runat="server" Height="50px" Width="750px" AutoGenerateRows="False" DataSourceID="ObjectDataSource1" AutoGenerateDeleteButton="True" AutoGenerateEditButton="True" AutoGenerateInsertButton="True" DataKeyNames="ID" DefaultMode="Insert"
HeaderText="Catagory Details" OnModeChanged="detailsCatagory_ModeChanged">
<Fields>
<asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True" SortExpression="ID"></asp:BoundField>
<asp:BoundField DataField="AddedDate" DataFormatString="{0: d}" HeaderText="AddedDate" InsertVisible="False" ReadOnly="True" SortExpression="AddedDate"></asp:BoundField>
<asp:BoundField DataField="AddedBy" HeaderText="AddedBy" InsertVisible="False" ReadOnly="True" SortExpression="AddedBy"></asp:BoundField>
<asp:TemplateField HeaderText="Title" SortExpression="Title">
<EditItemTemplate>
<asp:TextBox ID="textTitle" runat="server" Text='<%# Bind("Title") >' MaxLength="256" Width="99%"></asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID="textTitle" runat="server" Text='<%# Bind("Title") %>' MaxLength="256" Width="99%"></asp:TextBox>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="labelTitle" runat="server" Text='<%# Bind("Title") %>'></asp:Label>
</ItemTemplate>
<;/asp:TemplateField>
</pre>
|
|
|
|
|
what is the difference between runtime error and compile time error?
What is the difference between static and read only?
Can any one explain with simple examples?
Santhapur
|
|
|
|