|
What do you mean in td?
To receive a the value of the querys string you use Request.QueryString.Get(mystringid), where mystringid is the id of the querystring you want.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
First you can saveit in a hdden variable from querystring then you can access it in td as
<%=hdnval.Value%>
also
You can access querystring using javascript
Cheers!!
Brij
|
|
|
|
|
Sorry if this is a dumb question; I seem to remember running into this problem some time ago, and I can't remember what the answer was :
I am working on an old ASP.NET 2.0 website that uses C# codebehind files.
I have tried to make some very basic code changes (i.e. fixing a typo in a programmatic error message) on my local copy of the webapp, but my changes are not being recompiled into the DLL.
After making the change in the .cs page, I click Build>>Build Page for both the .aspx and .cs pages. Still, the changes do not appear when I run the site on the test/local server.
The .cs pages uses "Codebehind="productdetail.aspx.cs"", which VWD reminds me is "no longer supported". Will the DLL recompile ignore my changes unless I rename Codebehind to Src? Edit: I have done that, still no recognition.
I used to use inline code for ASP.NET pages, and recompiles never seemed to be a problem. Seperate code pages, however, are presenting these problems.
Thanks for any advice!
|
|
|
|
|
Are you perhaps building a release version and then debugging, so the debug version is run ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I have tried (re)building the website on my local machine with both debug="true" and debug="false". In either case, the minor message-text change I've made to the .cs codebehind file is not being recognized.
I've just noticed that there is an "obj" folder in the root containing Debug and Release folders - the Release folder has a bunch of .resources files and a "MyWebsite.csproj.FileListAbsolute.txt" file. I'm used to making stupid/simple changes to .aspx files with inline code... I need to read up on this method of deploying, as I have no idea what is going on here.
Edit: Aha, here are the MySite.csproj, MySite.publish, and MySite.sln files, as well as "User Options" files for the .sln and .proj files.
modified on Thursday, December 18, 2008 1:37 PM
|
|
|
|
|
I'll be damned, I never realized that I should just click on the ".sln" fil to open a web application project - I have always opened up projects as file systems. It compiles OK now.
In order to move changes to production, can I just
1. Change the Web.config so that
<compilation debug="false" batch="true" />
2. Build the project locally to compile the changes
3. Copy the local .DLL "brain" an dcopy it over the old DLL on the production server
...or is it trickier than this?
|
|
|
|
|
Hey guys, how's it going?
I've got this web site written in ASP .NET using AJAX components I'm hosting using IIS. The web site is accessing a database implemented with SQL Server 2000 SP4.
I ran it so far on one Windows 2003 Server station, and it ran perfectly. However, I installed it today on a different station and when I tried loading the site I got the above error message (which from what I understand from my searches so far is a pretty popular one).
Assuming my code works, since it runs fairly well on a certain station, I assume the problem is with the configuration or the lack of a certain component in the enviroment. Or maybe it IS with my code.. dunno..
Anyone got any clue what might be my problem?
Thanks a bunch,
LZ
|
|
|
|
|
The error means your code is poorly written. It's assuming a string is a date time, using Convert.ToDateTime or DateTime.Parse instead of DateTime.TryParse.
The actual issue could be the region setting of the server. It could even be that you're storing dates as strings in the DB, and the DB has them stored in one format and now the machine is trying to parse them in the other ( MM/DD or DD/MM )
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks for the reply!
However, didn't really help... since I'm only storing DateTime in the DB, and the regional settings were the same on both stations...
Plus, even if it is a code problem, I want to figure out what's the configuration difference that caused this problem. Since, as mentioned, it works fairly well on most stations.
Thanks again,
LZ
|
|
|
|
|
Hello friends,
I have userid on facebook. i want to access emailid using by userid. please tell me.
|
|
|
|
|
This is not even remotely an ASP.NET question. It's also insane. Why would facebook allow anyone to get members private email addresses ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hi ppl
i just want a clarification.
is it possible to import a dll file which was developed my vb.net in to a asp.net application?
self confidence+hard work=SUCCESS
|
|
|
|
|
You should be able to. ASP.NET can be coded in either VB.NET or C#. You'll have to add a reference to the .dll in your ASP.NET project.
MS Lee wrote: ppl
As a friendly suggestion, no text speak
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Did you bother to try first ?
The answer is, it depends. If your dll exposes any sort of winforms functionality, it's not going to work with ASP.NET. otherwise, of course.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hey christian, thanks
yeah the same i ment, actually i need to do some sort of winforms functionality(such as openfiledialogue/save..) and to make this as a .dll and need to use it on asp.net yaar...
self confidence+hard work=SUCCESS
|
|
|
|
|
MS Lee wrote: i need to do some sort of winforms functionality(such as openfiledialogue/save..) and to make this as a .dll and need to use it on asp.net
It will not work.
|
|
|
|
|
is there any posibilities to get the same...
and could you please what kinda of win form sources could be use as a dll in asp.net?
self confidence+hard work=SUCCESS
|
|
|
|
|
hi all,
how can i display a HeaderText in a GridView Horizontaly ?
i know normaly it doesnt exist in .NET HeaderText Horizontaly but mabe a workaround with HTML or something.
i need it horizontaly cause vertical take a lot of space in my GridView and i dont have so much.
thanks in advanced
|
|
|
|
|
EBeylo wrote: i need it horizontaly cause vertical take a lot of space in my GridView and i dont have so much.
If this only the reason then you can just put the Gridview inside Div and use the Vertical Scroll of Div.
|
|
|
|
|
Thanks for replying, my GridView is in a Div with a Vertical Scroll,
but i think it looks better when the user doesnt need to Scroll a long moment to see all the GridView, and my Table have a lot of columns and the best way is (if their a way like this) to put the headers Horizontally then the user dont need to scroll a lot.
|
|
|
|
|
EBeylo wrote: my GridView is in a Div with a Vertical Scroll,
Yaa... I have already Guessed that ,you have already try it. But I don't think we have any other option.
Let me check, If I have found something I will surely update you !!!
|
|
|
|
|
ok thank you and i will be happy if you find something!
On the other hand, i am thinking if we can put an HTML code inside the (HeaderText:"")
Example: <asp:BoundField DataField="Name" HeaderText= <HTML Code <i>NAME</i> HTML>
and inside this HTML something like: do this Text Horizontaly. the Problem i am not very good in HTML and i am not sure if its exists something like that ( do Text Horizontaly) i know only we can change the Text to Bold like (<b></b>) or Italian like (<i></i>)...
??
|
|
|
|
|
Hi all,
I'm still fighting with getting multiple lines in a dynamic gridview. Searching around led me to think that if I can change the data during the rowcreated handler this just might work.
gv2.RowCreated += new GridViewRowEventHandler(gv2_RowCreated);
gv2.DataBind();
protected void gv2_RowCreated(object sender, GridViewRowEventArgs e)
{
for (int i = 0; i < 5; i++)
{
e.Row.Cells[i].Text.Replace(Environment.NewLine, "<br />");
}
}
Whenever I run the debugger, the new event handler line adds the handler, but never runs through the block of code. I'd imagine that during the DataBind, the rows are being created, so why isn't the system seeing this event?
"You're damned if you do, and you're damned if you dont" - Bart Simpson
|
|
|
|
|
itmaster21 wrote: gv2.RowCreated += new GridViewRowEventHandler(gv2_RowCreated);
From where you are executing this ? If you want to execute Event handler of a runtime created controls, you need to add this event handler before Page_Load()
|
|
|
|
|
Ah, maybe that's why! It's actually in the block of code that is being called from within the Page_Load().
"You're damned if you do, and you're damned if you dont" - Bart Simpson
|
|
|
|