|
Oh George, your questions are still as obscure as they've always been.
Whats to stop a programmer setting session["timeToken"] = ""? It doesnt necessarily mean the whole session is expired, just that that particular variable has been set to an empty string.
|
|
|
|
|
J4amieC wrote: Oh George, your questions are still as obscure as they've always been.
I'm hoping you didn't fall out of your chair.
|
|
|
|
|
Can't you just insert the code in the GLOBAL.ASA to handle whatever it is you are trying to do?
|
|
|
|
|
Hope someone can give me a hand.
Im creating a Crystal report in VS2008 C# using a strongly typed dataset using the following code;
ReportDocument MyReport = new ReportDocument();
MyReport.Load(Server.MapPath("~/MyReport.rpt"));
MyReport.SetDataSource(dt_CompareData);
CrystalReportViewer1.ReportSource = MyReport;
CrystalReportViewer1.RefreshReport();
but when I try to set the data source of the report it throws the following error.
'The call is ambiguous between the following methods or properties: 'CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(System.Collections.IEnumerable)' and 'CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(System.Data.DataTable)'
I've tried a few slightly different versions of the code all with the same result. I've also tried several 'tutorials' that walk you through the process step by step without luck.
Any help would be greatly appreciated.
Thanks in advance
|
|
|
|
|
I agree with the steps you use to invoke crystal, so the only thing left is to see how you defined "dt_CompareData" and populated it with values.
Show that code and maybe we can find the problem.
|
|
|
|
|
OK, here is the pertinent code. I have examined the datatable in debug mode and it looks to be populating just fine so I don't think that is the problem. I've also tried assigning the table to a dataset and setting the datasource to the dataset with the same result.
protected void Button1_Click(object sender, EventArgs e)
{
HeadCount_Controller controller = new HeadCount_Controller();
int Filter = System.Convert.ToInt32(RadioButtonList1.SelectedValue);
string DateFrom = txb_DateFrom.Text;
string DateTo = txb_DateTo.Text;
int TrafficTol = System.Convert.ToInt32(tb_TrafficTol.Text);
int TransTol = System.Convert.ToInt32(tb_TransTol.Text);
List<Chain> ChainList = new List<Chain>();
foreach (GridViewRow row in GridView1.Rows)
{
CheckBox cb = ((CheckBox)row.FindControl("cb_Select"));
if (cb != null && cb.Checked)
{
Chain me = new Chain();
me.Chain_Name = row.Cells[0].Text.ToString();
ChainList.Add(me);
}
}
HeadCountDataSet.DB_vs_App_CompareDataDataTable dt_CompareData = new HeadCountDataSet.DB_vs_App_CompareDataDataTable();
dt_CompareData = controller.CompareData(ChainList, DateFrom, DateTo, Filter);
ReportDocument MyReport = new ReportDocument();
MyReport.Load(Server.MapPath("~/MyReport.rpt"));
MyReport.SetDataSource(dt_CompareData);
CrystalReportViewer1.ReportSource = MyReport;
CrystalReportViewer1.RefreshReport();
}
From the Controller;
public HeadCountDataSet.DB_vs_App_CompareDataDataTable CompareData(List<Chain> ChainList, string DateFrom, string DateTo, int Filter)
{
HeadCountDataSet.DB_vs_App_CompareDataDataTable dt_CompareResults = new HeadCountDataSet.DB_vs_App_CompareDataDataTable();
foreach (Chain row in ChainList)
{
HeadCountDataSet.DB_vs_App_CompareDataDataTable dt_ChainData = new HeadCountDataSet.DB_vs_App_CompareDataDataTable();
dt_ChainData = HeadcountDB.CompareData(row.Chain_Name, DateFrom, DateTo, Filter);
foreach (HeadCountDataSet.DB_vs_App_CompareDataRow arow in dt_ChainData)
{
dt_CompareResults.ImportRow(arow);
}
}
return dt_CompareResults;
}
Thanks for any assistance.
|
|
|
|
|
I had configured my website in IIS with self cetification to use that as a Secured site all the things are good but when i try to browse the website with "https://" it is giving error like
Secure Connection Failed
An error occurred during a connection to localhost:153.
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)
Here i am using 153 port for TCP/IP and 443 for SSL and mine is a Windows Server 2003 with IIS 6.0
Please help me thanks for your time.
Thanks & Regards,
Anil Chelasani
|
|
|
|
|
I have the same error.. Did you find the solution ?
thx
|
|
|
|
|
Hello to everybody,
I'm just starting a new asp.net 3.5 web project, I was looking on the net for the best practice on Web UI navigation but I found no valid solution...
I was looking for guidelines or full commercial template on how the Web UI should look like... I mean the navigation, the menu organization and so on...
For the architecture I was driven to develop a standard :
Web-UI -> WebServices (Core Level) -> DB
Thanks in advance
Paolo
|
|
|
|
|
This depends very much on what your site does/how you want it to be perceived. Maybe have a look at your competitors and see what bits of their sites you like...
|
|
|
|
|
Ponzano Paolo wrote: I was looking on the net for the best practice on Web UI navigation but I found no valid solution
Did you look here[^]?
|
|
|
|
|
How can I update using dreamweaver??
|
|
|
|
|
FTP
Site -> manage sites ->
(Create or edit a site)
-> Remote Info.
Set access to ftp.
And enter your login details.
Then use the green and blue arrows on the files pane to transfer files.
|
|
|
|
|
Hello all,
I am looking for a product out there I can plug into a website that will allow users to edit photos (crop, resize, tint, redeye etc). Any technology will be acceptable (Flash, Silverlight, AJAX .NET etc). So basically I am looking for a web based photo editing tool that will seamlessly integrate into a website. It can be a web based service or an included DLL etc. Anyone know of any products out there?
Just to note I am actually surprised a tool like this is that hard to find. One would think this would be a common request.
Thanks to any for the help.
If it's not broken, use a bigger hammer
|
|
|
|
|
Hi
Check the personal Website starter kit, it holds a complete photo gallery
Mohammad Al Hoss
Development To Me Is A Pleasure more than a Job
|
|
|
|
|
I currently have a JavaScript script which simply sets the visibility property of one or two absolutely positioned submenus (div tags) to visible to display them and to hidden to hide them. This is done on mouse over and on mouse out (if you are displaying 2 submenus for example, you simply send the function the submenu level (1 is the root menu) and the ids of the 2 submenus to display). The code is simple enough. The only problem is it doesn't work correctly in Firefox 3 or Flock 2.5. The submenus display correctly, but when you try to hover over the second link in any submenu, the submenus disappear, when they should be kept visible by the JavaScript code. And, since they don't currently have Firebug for Firefox 3, I can't debug it to figure out why they disappear. Any help would be appreciated.
You can view a live sample at: http://www.bluelightningtechnologies.com/
the css code can be found at: http://www.bluelightningtechnologies.com/css/BLT.css
the JavaScript code can be found at: http://www.bluelightningtechnologies.com/js/menu.js
|
|
|
|
|
"And, since they don't currently have Firebug for Firefox 3, I can't debug it to figure out why they disappear."
Hmm, I am using Firebug in Firefox 3 and it works just fine.
FF v3.0.10
FB v1.3.3
If it's not broken, use a bigger hammer
|
|
|
|
|
Yes, I now know about the new Firebug. I did a search last night after I posted this. But the most disturbing thing is, now that I've installed Firebug, my onmouseover events no longer fire in Flock 2.5 or Firefox 3 after stopping the execution a couple of times. And this happens whether or not I close Firebug. I'm not sure I like this new version of Firebug.
|
|
|
|
|
i installed a net accelerator software and when i uninstall that my brower stoped browsing and shows the error HTTP 400 (bad request
|
|
|
|
|
sounds like you've got a virus my friend, download autoruns.exe by microsoft and check your reg
|
|
|
|
|
It may have set a proxy in your browser. In firefox click Tools -> Options -> Advanced Tab(gear icon) -> Network tab -> Settings and then make sure the radio button "No Proxy" is selected
|
|
|
|
|
|
Hi Frd's
Can anybody tell me how to find a client system IP address which is in a LAN and connected to internet. Here i want to find out both public IP and private IP.
Please help me.
Thanks & Regards,
Anil Chelasani
|
|
|
|
|
static public String GetClientIP(Page page)
{
String strIpAddress = String.Empty;
try
{
strIpAddress = page.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (strIpAddress == null)
strIpAddress = page.Request.ServerVariables["REMOTE_ADDR"];
if (strIpAddress == null)
strIpAddress = page.Request.UserHostAddress;
}
catch
{
strIpAddress = "IP address not Found";
}
return strIpAddress;
}
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Thanks it's a great help for me.
Thanks & Regards,
Anil Chelasani
|
|
|
|