|
Thanks for the Clarification Jhon ,
Will the Response.Redirect Forces the Session Varriable to be posted to the Transfered page ?
Dana
|
|
|
|
|
Session variables live on the server, they are not posted anywhere. Viewstate exists on the client, and it's lost in both cases.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
Session values will be available through-out the session in all the pages. You don't have to think of session values when using Server.Transfer and Response.Redirect. it's there...
Regards - J O H N -
|
|
|
|
|
when i try to browse my web form the page doesnot display and throw this exception
The current identity (3M-FCD68B9835FB\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files.
I don't understand this exception , How to fix it????
Thanks a lot
LA ELAH ELA ALLAH MOHAMED RASOL ALLAH
|
|
|
|
|
I think this question is already posted in this forum...
There are a lot of way to do..
1. Add ASPNET account to Administrators group....
OR
2. Give the full permission to everyone (including ASPNET account)
OR
3. Add impersonate=true in your web.config..
hope it helps...
|
|
|
|
|
Hi
I have a ASP.Net 1.1 website with VB as code behind and the aspx pages inherit from certain business objects which in turn inherit from the System.Web.UI.Page class. In the business object, they have go the declaration for a couple of third party controls present in all the pages. The problem is that every time, I switch to design mode for the pages, Visual Studio inserts a property declaration for those controls present in the page and now it is duplicated. Is there a way I can trick Visual Studio not to insert declarations for all those controls which are already defined in any of the classes in the inheritance chain?
This is how the structure is:
Page1.aspx has a third party control with id set to 'crtl1'.
Here is how the inheritance chain is:
Page1 inherits BusinessObjectA
BusinessObjectA inherits BusinessObjectB
BusinessObjectB inherits System.Web.UI.Page.
BusinessObjectB already contains the declaration for crtl1.
Now, if I view Page1.aspx in design mode and then view the code, Visual Sutido inserts a declaration for crtl in Page1's code behind file.
Any suggestions would be greatly appreciated.
Thanks
tsr.
|
|
|
|
|
Or add him to my installed files ?
I have this path :
"I:\Tools\Tool\bin\Debug\tool.html" // tool.html compile as resource //
I want my project when He star after I install him on another computer.
Navigate directly to this local resource || file .
Suggestions ?
|
|
|
|
|
Hi,
Currently, in my ASP .Net project, I read text from a text file using a streamreader. The code I use is below:
<br />
<% <br />
Dim sR As New IO.StreamReader(IO.Path.Combine(Server.MapPath("~"), "templates/menu.txt"))<br />
Do<br />
Dim line As String = sR.ReadLine<br />
Response.Write(line)<br />
Loop Until (sR.EndOfStream = True)<br />
<br />
sR.Close()<br />
%><br />
Will an exception be thrown if two separate people access the same page at the same time, thereby causing two streamreaders to try and access the same file?
Thanks in advance,
Mitch
-- modified at 14:15 Friday 9th November, 2007
|
|
|
|
|
I believe that this is OK. A file can be accessed by more than 1 process, as long as another process has not locked or prohibited read access to the file. If you were writing to a file, you would want to lock all or part of it to ensure that your changes were not overwritten by another process.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Great, thanks for the reply.
I wasn't sure how Windows would handle two separate read requests at the same time.
Thanks,
Mitch
|
|
|
|
|
Hi,
I want to ask about the (log in) in the VB2005..
how I can use the administration tools from Asp.net configuration ?? because when I enter to administration tools and go to the security tab , the message will be occur “ unable to connect to the DB !! “
how I can solve this problem ??
Thanks..
|
|
|
|
|
You probably do not have a SQL Server installed on your machine. Try installing the express edition of SQL Server and let me know if you are still not able to use Admin tools.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
hi ,
I have created a data grid and also connected to database ( in sql server) . my data grid table consists of few rows and columns . my each row shud be updated by modfying the row creating a edit box there in the page displayed when u click the edit button!! i want to edit each row and then update existing record of the table ..
i am working in VS 2005 and using sql server manager for my database ..
can somebody explain me each step clearly how to do this !!!
thank you
|
|
|
|
|
1. Convert all bounded columns to the template columns.
2. Add a Link and set the commandname "Edit" in normal template..
3. Add another link in edit template and set the commandname "update"
4. In Datagrid_ItemCommand event,
<br />
if(commandname = "edit"){<br />
}<br />
else if(commandname = "update"){<br />
}
That's all..
|
|
|
|
|
can u explain in detail how to do that.. i am not able to do it still
|
|
|
|
|
Those steps that I mentioned are the details.. I currently don't have the sample code for this..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
VS 2005 Pro SP1 on Win XP.
I get the above error occasionally on attempting to save a web form. Clicking on OK triggers the Save As dialog box. At this point the only solution is to save it to another location, then quit VS, copy the saved file back to its original location (i.e., overwrite the corrupted original) and then restart VS.
I've seen that others have had this problem but on older versions of VS. So far, I've only noticed it happening on the same specific file. This is a file I've inherited from another developer and contains user controls and Ajax controls.
I also have these IDE add-ins - Refactor! Pro/DXCore, GhostDoc, SmartPaster, CodeKeep, Resharper UnitRun.
Any ideas?
Kevin
|
|
|
|
|
I have a search option in my page how can I control the words that are in the list when the user types something.
I have different pages I need to get the relevant words to this page.
thx
BiG RaLpH
|
|
|
|
|
|
I need several buttons on each GridView row that redirect to pages performing custom operations. How do I get the DataKey of the row the button was clicked on? So that I can send the database ID of the row I want to perform operations on to another page. I can't use GridView.SelectedDataKey.Value because i'm not always going to be clicking the select button. Nor can I use the index, because that is not the ID for the data in the database.
|
|
|
|
|
Nevermind. This is how I did it. If someone knows a better way, lemme know.
I created a button commandField with command "EditRow" and hooked up the RowCommand event.
<code>
protected void MainGrid_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "EditRow")
{
DataKey mykey = MainGrid.DataKeys[Convert.ToInt32(e.CommandArgument)];
String mystring = Convert.ToString(mykey.Value);
Page.Response.Redirect("Insert.aspx?key=" + mystring);
}
}
</code>
|
|
|
|
|
I m in need of list of asp.net project title for my academic , can any one help me.
prabumj@gmail.com
|
|
|
|
|
How's about a project title cataloguing and listing application?
|
|
|
|
|
I See two problem.
1st: Wrong forum, try Longue
2snd: You didn't say witch language you gonna use.
My Suggestion:
If you must have asp.net, then try Database manager or news control.
|
|
|
|