|
We have an application, which it has its own user authentication pages. Also, we have a web services that runs in parallel with the main application. The web services utilizes separate authentication mechanism. So, users of our web service get authenticated then they are redirected to the web services. This all works fine.
In most cases, all of our clients implement their own code to talk to our web services. Recently, we had a client who requested us we develop the mechanism for them. All of our testes passed in the test environment. In the test environment the web service and the authentication mechanism live in separate servers, so a client first authenticates with server A then we redirects them to server B. This has been working fine for number of years.
User authenticates using https:
then we redirect them to https:
When we moved to production the piece of code we developed, we decided to put both applications in the same server, and I was surprized to how Response.Redirect and IIS work.
User authenticates using https:
then we redirect them to https:
In the second case, the redirect is sent to the client as relative url /app1/letmein.aspx?iguid=xyz even though we are setting the full absolute URL in the redirect. I have checked the returned pages headers using Fiddler and it shows relative url, not absolute as I was expecting them.
I googled for some hint and found out that I need to set useFullyQualifiedRedirectUrl="true" in the config file. But that does not seem to make a difference.
So, Is there a way to tell the app or IIS to send full absolute URL? How do I achieve that.
|
|
|
|
|
|
Interesting, will give it a shot.
|
|
|
|
|
Hi,
i am using asp.net. in my html tag, is taking well but tag is not taking. So wondering what else is my option to make the two words distinct ? any equivalent methods ??
suchita
|
|
|
|
|
WHat does your tag looks like? try to post complete question, so it is easier to understand and help ya!
|
|
|
|
|
ya sure. My code is something like this:
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Category") %><%# DataBinder.Eval(Container.DataItem,"Item")%>
</ItemTemplate>
now if the Category and Item has values Furniture and table respectively, my output is like this:
Furnituretable
But I am trying to show like this:
Furniture table
so i put tag between these databinders.
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Category") %></t><%# DataBinder.Eval(Container.DataItem,"Item")%>
</ItemTemplate>
But still my output is:
Furnituretable
suchita
|
|
|
|
|
SayamiSuchi wrote: <itemtemplate>
<%# DataBinder.Eval(Container.DataItem, "Category") %><%# DataBinder.Eval(Container.DataItem,"Item")%>
well /t is not valid HTML tag.
use instead.
|
|
|
|
|
Yup its worked. Thank you very much Yusuf.
suchita
|
|
|
|
|
SayamiSuchi wrote: <itemtemplate> <%# DataBinder.Eval(Container.DataItem, "Category") %><%# DataBinder.Eval(Container.DataItem,"Item")%>
align content with table or div
<ItemTemplate>
<table>
<tr>
<td><%# DataBinder.Eval(Container.DataItem, "Category") %></td>
<td> </td>
<td><%# DataBinder.Eval(Container.DataItem,"Item")%></td>
</tr>
</table>
</ItemTemplate>
[edit] sorry for late post. connection disconnected [/edit]
|
|
|
|
|
Thank you Makhaai. Problem is solved.
suchita
|
|
|
|
|
Hi,
I am exporting my data in the word file in asp.net. The data is too long that it doesn't fit in one page of document file. it is almost few pages. Is there any way i can show my data pagewise so that the each section should be in one page. Right now since i do not know how to set that property, some sections are in the same page while some sections are in two pages.
Is there any way , any ideas ??
suchita
|
|
|
|
|
what are you talking about. Can you clarify your question.
|
|
|
|
|
Sure. I have some data like items list based on category. E.g.
Furniture category has items like table, chair ...
Stationary category has items like books,copies ...
I am showing list of items based on category. So each category is showing with items. So i am calling each category with items as one sections.
now i am showing these sections in the word file. since there are so many sections, they do not fit in one page of the word file. Now I want a complete section in one a page. But what is happening is --> since multiple sections are showing in one page, in case a complete section doesn't fit in one page, it is showing the rest in another page which is obvious. But I want complete section in one page so that its easier to view by the user.
Is there any way that in case a complete section doesn't seem to fit in the current page, it should show to the new page?
Is there any possibility to do that ?
suchita
|
|
|
|
|
I'm not sure how you are exporting your data to Word, but I think what you want to do is write a "Page Break" after each section, this will cause the next section to begin on a new page.
The way to do this in a Word macro is "Selection.InsertBreak Type:=wdPageBreak", however, I'm not sure how you are exporting the data to Word.
I believe "Page Break" is what you are looking for.
|
|
|
|
|
thanks for the reply. Ya i need the page break but can i do the page break from the ascx page ?
suchita
|
|
|
|
|
I'm still a bit confused.
Here is what I thought you were doing:
1) Create the dataset in your code behind
2) Export the data to a MS-Word document.
3) View that MS-Word document in your browser.
What I don't know is how your are performing the "Export". It is during this "Export" process that you would instruct MS-Word to insert a page break in the document.
Can you explain what you mean by "I am exporting my data in the word file in asp.net." in your original post.
I may be thinking of something different that what you are actually doing.
|
|
|
|
|
i am exporting into the MS_word document as you thought. I kept first in the dataset and from dataset to the word document and viewing that in browser.
suchita
|
|
|
|
|
Here is a code snipet of how to insert Page Breaks in your MS-Word document as you build it from your dataset ...
Dim oWordApp As New Word.Application
Dim oWordDoc As Word.Document
Dim oPara1 As Word.Paragraph
oWordApp.Visible = True
oWordDoc = oWordApp.Documents.Add()
oWordDoc.Activate()
oPara1 = oWordDoc.Content.Paragraphs.Add
oPara1.Range.Text = "Grouping 1"
oPara1.Range.InsertParagraphAfter()
oPara1 = oWordDoc.Content.Paragraphs.Add
oPara1.Range.Text = Chr(12) + "Grouping 2" ' Notice the chr(12) is appended before the title of the second group
oPara1.Range.InsertParagraphAfter()
'oWordDoc.SaveAs("C:\Page Break Test.doc")
oWordDoc.PrintPreview()
MsgBox("Close the word document now.")
oWordDoc.Close()
oWordApp.Quit()
oWordDoc = Nothing
oWordApp = Nothing
Try inserting the Chr(12) into your code whenever your grouping changes and you should see the page breaks appear.
Good luck.
|
|
|
|
|
I couldn't understand this code. Can you explain more please?
suchita
|
|
|
|
|
Hi,
i have sql query of getting the total value like this:
select ID,sum(Amount) from items group by ID
the query is giving value in sql server management.
Now I want that total sum value in the ascx page but I dont know what will be the paramter name for such column.
<%# DataBinder.Eval(Container.DataItem,"sum(Amount)") %>
sum(Amount) doesn't work. Does anyone know what will be the parameter name for such query ??
Thanks,
suchita
|
|
|
|
|
Well, let's give the column a new name;
select ID,sum(Amount) AS [TotalAmount] from items group by ID
<%# DataBinder.Eval(Container.DataItem,"TotalAmount") %>
I are Troll
|
|
|
|
|
|
I have a ajax tool calendarExtendarFromDate,imgFromDate,textBoxFromDate,calendarExtendarToDate,imgToDate and textBoxToDate,When a date is selected from calendarExtendarFromDate,that date is displayed in textBoxFromDate.Likewise in the case of calendarExtendarToDate.Here is the source code:
--------------------------------------------------------------
<asp:updatepanel id="UpdatePanel1" runat="server">
<contenttemplate>
<asp:textbox id="txtFromDate" runat="server" readonly="True">
<cc1:calendarextender id="CalendarExtenderFromDate" runat="server" cssclass="cal" targetcontrolid="txtFromDate" popupbuttonid="imgFromDate">
<cc1:calendarextender id="CalendarExtenderToDate" runat="server" onclientdateselectionchanged="CheckForFutureDate" cssclass="cal" targetcontrolid="txtToDate" popupbuttonid="imgToDate">
<cc1:calendarextender>
-------------------------------------------------------------
I have radiobuttons..When the radiobutton between is clicked,then only calendarExtendarToDate is enabled.otherwise it becomes in disabled state..I wrote code in jscript as below:
function validate()
{
document.getElementById("imgToDate").disabled=false;
document.getElementById("txtToDate").disabled=false;
}
//call this function in .aspx.cs as below:
rbBetween.Attributes.Add("onClick", "return validate()");
textbox is disabled.When between radio is clicked,then only enabled.But calendarextendar disabled didnt work.Pls help me...
|
|
|
|
|
Can you edit this please, I (and I doubt anyone) can read the code. You need to put the code between <pre></pre> tags, AND improve the whitespacing like this:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<asp:TextBox ID="txtFromDate" runat="server" ReadOnly="True"> />
<cc1:CalendarExtender ID="CalendarExtenderFromDate" runat="server" CssClass="cal" TargetControlID="txtFromDate" PopupButtonID="imgFromDate"/>
</asp:UpdatePanel>
ragnaroknrol The Internet is For Porn[^]
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.
|
|
|
|
|
Format this mess properly!
I know the language. I've read a book. - _Madmatt
|
|
|
|