|
|
I have two calendar controls on same page,if month selection on title bar of calendar is changed on one calendar second calendar's month automatically get changed
|
|
|
|
|
So, what is the problem? You didn't mentioned your problem.
|
|
|
|
|
That's nice for you.
I'm assuming the hidden question there is "how do I do this?"
Capture the selected date changed event on calendar one, capture which is the selected month and then apply it to number two.
|
|
|
|
|
Mansi Arora wrote: changed on one calendar second calendar's month automatically get changed
This will help you.
<asp:Calendar ID="Calendar1" runat="server"
onvisiblemonthchanged="Calendar1_VisibleMonthChanged"></asp:Calendar>
<asp:Calendar ID="Calendar2" runat="server"></asp:Calendar>
protected void Calendar1_VisibleMonthChanged(object sender, MonthChangedEventArgs e)
{
Calendar2.TodaysDate = e.NewDate;
}
|
|
|
|
|
I have created rdlc reports in web.Please suggest a sample code for using one report viewer for all reports.All reports will be in one report viewer.Reports will be shown according to radiobuttons..Please help me..Give me a sample code.
|
|
|
|
|
Stop cross-posting - you should delete all duplicate questions if you hope to get an answer.
In any case, you have to try and work it out for yourself first and then ask here when you hit a snag that you cannot solve on a specific issue.
Remember, Google is your friend.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
|
Hi All,
i deployed my asp.net application into IIS, and if i run it in that server, say in Domain 1 , it works perfectly, but when i run that asp.net application from another machine, which is in the different domain, say in Domain 2, i got this error: Could not find a part of the path Domain 1\ITManagement\WarehouseData\Current.
The senario in here is that a machine in Domain 1 browse into an asp.net application on a server in Domain 2, and then the asp.net application on domain 2 tries to access a shared network driver on Domain 1.
i spent quite a few times to google it but without any luck, can someone in here help me plz
|
|
|
|
|
If I understand you correctly, you want your asp.net app to access a shared folder on a machine that is in a different windows domain. You could establish a trust relationship between the domains and add the account the app runs as in domain2 to the share permissions on the domain1 server, or you could map a drive on the server using some credentials from Domain1 and have your app use the drive letter. This really isn't an asp.net question at all which is why you may have had trouble with your google searches. It is a network share question.
|
|
|
|
|
AndieDu wrote: when i run that asp.net application from another machine, which is in the different domain, say in Domain 2, i got this error: Could not find a part of the path Domain 1\ITManagement\WarehouseData\Current.
Instead of accessing ITManagement\WarehouseData\Current from the file
system make it available from a web service and access it that way.
|
|
|
|
|
Accessing files on the same local network through a web service would be bad from a performance standpoint. You would have to base64 encode, then transmit the much larger encoded version, then decode on the other end. You also don't get anywhere near the richness of the System.IO classes for checking if the file exists or examining attributes like readonly, creation date etc.
|
|
|
|
|
Hi guys,
Am using linq-to sql to read from the database which returns a LIST<>,
but i wana create a html Table on runtime and fill this table with data that is in the LIST<>
i have tried this:
List<campaign> search = new List<campaign>();
search = dbh.GetSearchCampaign();
Table csr = new Table();
csr.ID = "ctb";
TableRow tr;
TableCell td = new TableCell();
csr.CellPadding = 0;
csr.CellSpacing = 0;
csr.Style.Value = "width: 578px; font-family: 'Adobe Caslon Pro'; font-size: 15px; padding-left: 10px; text-align: left;";
tr = new TableRow();
td = new TableCell();
for (int i = 0; i < search.Count; i++)
{
td.Text = search[i];
}
But this only adds one row which is the last row in the
LIST<>...it's not appending all the rows that are in the
LIST<>
Does anyone know how i can write all the elements in this LIST<>
to an html Table?
Please help me.
|
|
|
|
|
You have to add each cell to the row then add the row to the table: you'll need to adjust your loop and find the code fragments that will accomplish this for you (along the lines of row.cells.add(cell)).
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Your code logic is wrong. You assign text to the same table cell inside for loop.
Anyway why don't you use some built-in asp.net data bound controls for doing this?
|
|
|
|
|
o grande problema é q vc tem q deixar de ser burro, mundiça
|
|
|
|
|
hi,
we need to read styles from Style Sheet.css file and we need to bind these styles for Drop Down.
Thanks &Regards,
Vishnu.
|
|
|
|
|
Hi Experts..
I need one help from you peoples.
I am having a website where i have some coding in the Global file for the session starting and session end and all..
in the session end i will delete the file "User.xml" which contains required information which i have stored in on local place for rendering the page.
While rendering the page i will check for the file and take the reqd information from there. Its working fine.
I am having one Login Page where i will save the "User.xml" file upon clicking the Login Button.
Issue
What happens is when the session time outs, after clicking the Login Button it is saving the file, but in the session end coding its deleting the same.
so i planned to restart the session so that the session end wont fire.
So can any one says how to restart the session in C# coding?
Thanks in advance
|
|
|
|
|
Page.Session.Abort();
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
hi digimanus,
thanks for your response..
i hope you are talking about the Page.Session.Abandon();
but it will kill the session, how to restart the same?
|
|
|
|
|
Once a session times out, it is gone. Take a lesson from the story of Dr. Frankenstein and let it die in peace. And then name your files with the session ID in the filename to avoid these problems.
|
|
|
|
|
Thanks Mr Gray.. read about what you said.but i don't know is that correct. and thanks again for confirming the same.
|
|
|
|
|
Hi,
Just confirm me that after session_end, why are you firing that Login Button event?. Stop that event to continue the past session which was gone and take a New Session and store the Values in Users.xml file.
I think you got it....
|
|
|
|
|
Hi,
I have three repeaters rep1, rep2, rep3. Code block is like this:
<asp:Repeater runat="server" id="rep1">
<HeaderTemplate><b>Books</b><br /></HeaderTemplate>
<ItemTemplate>
<b><%# DataBinder.Eval(Container.DataItem, "Mathematics") %>
<asp:Repeater id="rep2" runat="server">
<HeaderTemplate>
<asp:Table ID="tblLists" runat="server">
<asp:TableRow>
<asp:TableCell>BookName</asp:TableCell>
<asp:TableCell>Amount</asp:TableCell>
</asp:TableRow>
</asp:Table>
</HeaderTemplate>
<ItemTemplate>
<asp:Table ID="tblListItems" runat="server">
<asp:TableRow>
<asp:TableCell><%# DataBinder.Eval(Container.DataItem, "BookName")%></asp:TableCell>
<asp:TableCell>$<%# DataBinder.Eval(Container.DataItem,"Amount")%></asp:TableCell>
</asp:TableRow>
</asp:Table>
</ItemTemplate>
</asp:Repeater>
<asp:Repeater ID="rep3" runat="server">
<ItemTemplate>
<asp:Table ID="tblTotal" runat="server">
<asp:TableRow>
<asp:TableCell></asp:TableCell>
<asp:TableCell></asp:TableCell>
<asp:TableCell></asp:TableCell>
<asp:TableCell>$<%# DataBinder.Eval(Container.DataItem, "TotalAmount") %></asp:TableCell>
</asp:TableRow>
</asp:Table>
</ItemTemplate>
</asp:Repeater>
</ItemTemplate>
<FooterTemplate>
</FooterTemplate>
<separatortemplate>
<br /><br /><br />
</separatortemplate>
</asp:Repeater>
I wanted to show something like this:
Books
BookName Amount
Eng Math $25
basic Math $40
Inter Math $60
$125
But it is showing like this:
Books
$
BookName Amount
Eng Math $25
basic Math $40
Inter Math $60
$125
$
$
$
Well, If i take out "$" from the code, display doesn't have any problem but I need to show that and it gives that display problem. I tried to show total amount table of rep3 in headerTemplate but that doesn't sound good. Any ideas on this kind of error ?
suchita
modified on Tuesday, August 3, 2010 8:48 AM
|
|
|
|
|
Ctrl-k Ctrl-d is your friend. Triple nested repeaters without proper indentation is a major pain in the neck to read. I still have no idea what your actual problem is or why you have crazy things like tables with three blank cells in the front of every row. But at least decently formatted code might get you more answers.
<asp:Repeater runat="server" ID="rep1">
<HeaderTemplate>
<b>Books</b><br />
</HeaderTemplate>
<ItemTemplate>
<b>
<%# DataBinder.Eval(Container.DataItem, "Mathematics") %>
<asp:Repeater ID="rep2" runat="server">
<HeaderTemplate>
<asp:Table ID="tblLists" runat="server">
<asp:TableRow>
<asp:TableCell>BookName</asp:TableCell>
<asp:TableCell>Amount</asp:TableCell>
</asp:TableRow>
</asp:Table>
</HeaderTemplate>
<ItemTemplate>
<asp:Table ID="tblListItems" runat="server">
<asp:TableRow>
<asp:TableCell><%# DataBinder.Eval(Container.DataItem, "BookName")%></asp:TableCell>
<asp:TableCell><%# DataBinder.Eval(Container.DataItem,"Amount")%></asp:TableCell>
</asp:TableRow>
</asp:Table>
</ItemTemplate>
</asp:Repeater>
<asp:Repeater ID="rep3" runat="server">
<ItemTemplate>
<asp:Table ID="tblTotal" runat="server">
<asp:TableRow>
<asp:TableCell></asp:TableCell>
<asp:TableCell></asp:TableCell>
<asp:TableCell></asp:TableCell>
<asp:TableCell><%# DataBinder.Eval(Container.DataItem, "TotalAmount") %></asp:TableCell>
</asp:TableRow>
</asp:Table>
</ItemTemplate>
</asp:Repeater>
</ItemTemplate>
<FooterTemplate>
</FooterTemplate>
<SeparatorTemplate>
<br />
<br />
<br />
</SeparatorTemplate>
</asp:Repeater>
|
|
|
|