|
Hmm ... I was thinking of getting the data from the database.
My reason for this is that since you are adding functionality to an existing application, then let's assume that "Page 1" is a complete, working entity.
Now you add "Page 2" to the applicaiton and you build it in such a way that it stands on it's own and can store the additional fields. You just now provide a link which would bring them back to "Page 1" which should know nothing about "Page 2" nor the data that it stores.
Nice. Clean.
Now if the data between Page 1 & 2 are more intricately related, it may not be so easy to implement it this way. One thing you should protect against is that the user cannot navigate to Page 2 without completing Page 1.
Just a though.
Remember to vote.
|
|
|
|
|
Under some circumstances, you might want to post one page to another page. For example, you might be creating a multi-page form that collects different information on each page. In that case, you can configure certain controls (those that implement the IButtonControl interface, such as the Button control) on the page to post to a different target page. This is referred to as cross-page posting. Cross-page posting provides some advantages over using the Transfer method to redirect to another page
http://msdn.microsoft.com/en-us/library/ms178139.aspx[^]
|
|
|
|
|
144 Points
137 Posts
columns in multiple rows issue?
4 minutes ago|LINK
Hi friends,
I want to build a gridview from a view join two tables Customer and CustomerAddress table..
BUt the format in which my end user wants is the problem i am facing
The gridview should look like this
Colum1 Column2 Column3
xx xxx xxx
Column4 Column5 column6
xxx xxx xxxx
Colum1 Column2 Column3
xx xxx xxx
Column4 Column5 column6
xxx xxx xxxx
so..on
The column 5,6,7 fields should always come below the column 1,2,3 fields....Can i format my gridview to look like this or use any other control and in the end this would make my job simple (i guess) to export to excel in same format...Thank you in advance for all you help and suggestions
|
|
|
|
|
akpaga22 wrote: Colum1 Column2 Column3
xx xxx xxx
Column4 Column5 column6
xxx xxx xxxx
Colum1 Column2 Column3
xx xxx xxx
Column4 Column5 column6
xxx xxx xxxx
Hi,
You can use TemplateField for doing the same.
Here is the example
<pre lang="VB">
<asp:TemplateField>
<ItemTemplate>
<table>
<tr>
<td>
<asp:Label ID="column1" runat="server" Text=""></asp:Label>
</td>
<td>
<asp:Label ID="column2" runat="server" Text=""></asp:Label>
</td>
<td>
<asp:Label ID="column3" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr>
<td>
<%#Eval("field1")%>
</td>
<td>
<%#Eval("field2")%>
</td>
<td>
<%#Eval("field3")%>
</td>
</tr>
<tr>
<td>
<asp:Label ID="column4" runat="server" ForeColor="GrayText" Text=""></asp:Label>
</td>
<td>
<asp:Label ID="column5" runat="server" Text=""></asp:Label>
</td>
<td>
<asp:Label ID="column6" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr>
<td>
<%#Eval("field4")%>
</td>
<td>
<%#Eval("field5")%>
</td>
<td>
<%#Eval("field6")%>
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
Sanjay Kunjam
------------------------------------------------------------------
"Computers are useless. They can only give answers" - Pablo Picasso
------------------------------------------------------------------
|
|
|
|
|
Hello all
I hope that one helps me to save image into database by MVC3 razor
Greetings
|
|
|
|
|
export button in crystal reports are not working in IE7.why?
|
|
|
|
|
|
you can enable this button by javascritp
|
|
|
|
|
How do I dynamically populate controls on a MVC page?For example: I have a page to create questions. I have a drop down with questionType; and i have properties of questions which are specifc to question type; so on selecting specific question type, i want to show controls like textboxes and dropdowns to show properties relevant only to the selected option. E.g. If text type is selected, MaxTextlength textbox is shown. If singleselectradio is choosen a choice is shown to use standard options or create custom options, on selection of custom, something like user control is shown to add options . Bottomline: controls on a page, appear and disappear as per user selection in MVC. This can be easily achieved by loading dynamic user controls or show/hide panels in ASP.Net.
|
|
|
|
|
Hi
I need to download file that does not have extension. The file itself is a simple plain text file. I do this from code using WebClient object. I also cannot view this file in browser with the same error.The error was 404 - file not found.
After research I added mime type: .* as application/octet-stream on web server level. Also the file has these permissions:
NetworkService - full access, ASP.NET - full access. Rebooted machine after making changes.
Still the same issue.
Anybody can advise what else to look for?
Thanks a lot,
Roman
|
|
|
|
|
Roman Muntyanu wrote: .The error was 404 - file not found.
This does not mean that the file extension was missing or file could not be opened via selected application. It simply means that the path used to access the file downloaded is incorrect and there is no file at the given path.
Make sure you download it at a specified location, check file exists visually once downloaded then try to open it using correct filepath.
|
|
|
|
|
The file definitely exists. I have access to the server. If I add extension .txt to the file and to the url I can browse the file and download it.
What is puzzling me is that I was able to download files withou extension on one staging server with adding mime type .* as application/octet-stream . Then we built another paralel staging server for development where download fails. I check all settings I know on both servers and they are identical. I am guessing I am still missing some specific setting on this new development server.
Thanks
|
|
|
|
|
Hi to all,
I have values in sql table like
RollNumber
----------------
101,102,103
----------------
Now i need get count of this cell, how can i get?????
anyone help me......
Thanks in advance......
|
|
|
|
|
select count(*),RollNumber from <yourtable> group by RollNumber
remember to vote !
|
|
|
|
|
select count(firstField1),count(firstField2),count(firstField3)from tblname
group by firstField1,firstField2,firstField3
|
|
|
|
|
comma (,) seperated rollno in a single field??
clarify please
|
|
|
|
|
I have a website that uses the Microsoft Report Viewer to display a report and it worked great until I uploaded it to web hosting company. It runs great on my local machine but not on the web host server.
more details...
on my local machine the report viewer preview data and it run successfully but on the web hosting server the report viewer preview nothing,the report viewer toolbar appear as disable and no error returned.
modified 19-Jun-12 4:09am.
|
|
|
|
|
Above information is insufficient. You need to provide more details. Updating question with error would help.
|
|
|
|
|
more details...
on my local machine the report viewer preview data and it run successfully but on the web hosting server the report viewer preview nothing,the report viewer toolbar appear as disable and no error returned
|
|
|
|
|
Check Report Viewer versions present and used. Make sure they are same.
Also, check system EventViewer to see if any error logged there.
|
|
|
|
|
How can if it hosted in a web hosting company and i haven't permission on that server???
|
|
|
|
|
Check Whether required .Net framework installed on that server or not,
along with all necessary software.
You hadn't mentioned any error, just not displaying data !
Check whether on that server itself it is showing or not?
Or its only at client side.
|
|
|
|
|
so i think that the required .Net Framework installed on that server
Hum Dum wrote: You hadn't mentioned any error, just not displaying data
no error just not displaying report data and the report toolbar appear as disabled
i want to know what the difference between running the report locally and remotely??
|
|
|
|
|
This is framework problem.
|
|
|
|
|
so,,, how do you know that it is a framework problem? as the framework,i worked is the same in the server.
and how can i solve it ...?
|
|
|
|