|
OH... this VB s****.I has screwed up all my oops concepts.C# is far better than VB, a good structured prog language.
Thank you for ur kind help...
When you fail to plan, you are planning to fail.
|
|
|
|
|
Hi,
I have craated an interface for generating the rdl file through c# (User will select some fields for group and some for details and report will be generated accordingly). I am generating the XML for the rdl according to the schema. And the report is running fine in my local system where i am using sqlexpress but is not working in production. The problem is coming with the datasource as follows.
An error has occurred during report processing.
Cannot create a connection to data source 'SOP'.
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection
I am using Integrated Authentication, below is the datasource code generated by c#
<DataSource Name="SOP">
<ConnectionProperties>
<IntegratedSecurity>true</IntegratedSecurity>
<ConnectString>Data Source=SIGMASQL;Initial Catalog=SOP</ConnectString>
<DataProvider>SQL</DataProvider>
</ConnectionProperties>
<rd:DataSourceID>36a274d3-f283-4ac9-9f26-401ddf14f733</rd:DataSourceID>
</DataSource>
When i am pasting the RDL xml to my BI project's Report it is giving preview properly, but after deployment it is not coming.
I have tried with SQL Authentication also by removing the IntegratedSqcurity element and changin g the connection string to add "sa" userid, but still it doesn't run and gives the same error and if i refresh the report with the refresh button of report viewer, it shows some Wrong String Format error.
When i am editing the dataset in the report designer(BI Project), the connection string is not storing password and username info in the xml of the rdl, i read somewhere that it stores these values in VS2005 and reporting service database with some encryption and don't keep in the xml. So it is seeming to me that i am not sending these credentials to reporting service while deployment through my c# code. Below is my deployment code
byte[] byteRDL;System.Text.UTF8Encoding encoder = new UTF8Encoding();
byteRDL = encoder.GetBytes(reportDefination);
Property[] rsProperty = new Property[10];
//Property property = new Property();
Warning[] warnings;
warnings = rs.CreateReport(reportName, "/QuoteReports", true, byteRDL, null);
But i have no idea why it is not even running with Windows Authentication also.
I am in big trouble guys. Pls help. I have to show it to my client..
Tarun Ghosh
Kolkata-India
|
|
|
|
|
I am working with MOSS 2007. Problem scenario as follows
1.We have developed one portal by using SharePoint server 2007 and this portal has been enabled for intranet and extranet environment.
2. Authentication used for this particular portal is Windows NTLM authentication.
3. User who is logging from extranet (From internet i.e. out side domain) will get initial authentication prompt, once user provides his credentials he can able to login in to the portal and he can access all pages around the portal except document link from document library with out any extra authentication prompt.
4. But if user is accessing any document from any document library, system is asking authentication and this is for every time and for every document library.
5. As per customer requirement we need to stop this unwanted authentication prompt.
Please let me know any solution available ASAP.
|
|
|
|
|
What has this got to do with asp.net?
|
|
|
|
|
Hi
I am trying to create a small search facility using microsoft indexing service.
I have followed the following article:
http://aspnet.4guysfromrolla.com/articles/033005-1.aspx
But at the bottom of the article Im not sure what to put for the query they have suggested,
if any1 can shed some light on this would be great
I keep getting the error message "There is no calalog" but the catalog exists and when I use the Query the Catalog in the console it works
thanks
|
|
|
|
|
Hi,
Personalization for my application is not working. I want to personlized web parts based on login user on my application not on Windows User.
Note: Login user are also authenticated from AD.
Any idea ?
Thanks in advance
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
check this out
http://msdn.microsoft.com/en-us/magazine/cc163724.aspx
|
|
|
|
|
Hi,
Thanks for your response. But, this is not answer that what i am looking for. This is User Profiler link . I need Custom Personlization of web parts and that would be based on the user who has logged on in my application not based on Windows user.
If you have any idea pelase share with me.
Thanks in Advance !!!!
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
Could you let me know the six main objects (like Session, Application..) in ASP.Net. Thanks in advance.
|
|
|
|
|
http://www.devarticles.com/c/a/ASP.NET/Using-Objects-in-ASP.NET-Part-1/
|
|
|
|
|
LalithaSJ wrote: Could you let me know the six main objects (like Session, Application..) in ASP.Net.
What? This is a bizzare request. What are you really wanting to know?
|
|
|
|
|
How do you know there are six ? Have you tried finding info on the web ? Or in your course notes ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
I'm not sure about the number six. Whatever the objects are present in ASP.Net, please let me know
|
|
|
|
|
I think you're getting confused. In classic ASP there were 5 objects available:
Request
Response
Server
Session
Application
In ASP.NET there are hundreds (if not thousands) - every object defined in the .NET runtime is available for use.
|
|
|
|
|
how to call back from server side
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
I have no idea what you mean, but I'd guess that it's not possible. Your server side creates html which is sent to the client when the client requests it. The client side does not exist while the server side is running.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Soposed that i have two aspx page One have hash table and another page have data grid
when hash tabele add new data in table then it inform to another page u refresh ur grid
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Are both forms visible at once ? If so, then if they are not parent and child, I doubt you can do that, without polling using AJAX. If only one is visible at a time then the form will work out the new state for itself as it reloads.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Hi
In my webform(webform1.aspx), i have an iFrame control, along with with many web controls.
The "src" attribute of it refers to another webform.(webform2.aspx)
I want text to appear in the frame on clicking a button which fetches the
value from db. Am using a session variable to hold the text to be assigned for iframe.
And am using the following code in WebForm1.aspx
<br />
private void Button1_Click(object sender, System.EventArgs e)<br />
{<br />
Session["Cont"] = "This is a page";<br />
<br />
HtmlGenericControl frame1 = (HtmlGenericControl)this.FindControl("txtFrame");<br />
<br />
frame1.Attributes["src"] = "WebForm2.aspx"; <br />
<br />
Server.Execute("WebForm2.aspx");<br />
Response.ClearContent();<br />
}<br />
And in WebForm2.aspx,Page_Load(..)
<br />
if(Session["Cont"]!=null)<br />
{<br />
Literal1.Text = Session["Cont"].ToString();<br />
}<br />
The problem is when i click the button in WebForm1.aspx, along with actual text, a textbox with some characters is appearing in the iFrame though there's no other control in the target(Webform2.aspx) other than Literal control.
Please help me in finding out the actual problem and its solution.
Thanks
~VSree
|
|
|
|
|
Hi,
I have this code for my e-Commerce site (asp.net2 with C#) for adding items to Shopping Cart:
protected void btnAddToCart_Click(object sender, ImageClickEventArgs e)
{
string Price = double.Parse(((Label)DataList1.Controls[0].FindControl("PriceLabel")).Text).ToString("0.00");
string ProductName = ((Label)DataList1.Controls[0].FindControl("BookNameLabel")).Text;
string PictureURL = ((Label)DataList1.Controls[0].FindControl("picLabel")).Text;
int ProductID = Convert.ToInt32(Request.QueryString["idLabel"]);
if (Profile.cart == null)
{
Profile.cart = new ShopCart.myshoppingcart();
}
Profile.cart.Insert(ProductID,Convert.ToDouble(Price),1,ProductName,PictureURL);
Server.Transfer("ItemIndex.aspx");
}
but when i'm runnig my site and click on btnAddToCart
this error occur:
Object reference not set to an instance of an object.
i underlined my code where this error occur.
i search in google but i didn't get any result or i don't underestand what should i do?
how i can solve this error?
thank you,
Hoda
|
|
|
|
|
Saba02 wrote: string Price = double.Parse(((Label)DataList1.Controls[0].FindControl("PriceLabel")).Text).ToString("0.00");
Wow - what horrible code.
Try this:
if (DataList1.Controls.Length > 0)
{
Control c = DataList1.Controls[0];
Label l = c.FindControl("PriceLabel") as Label;
if (l != null)
{
string Price = l.Text;
Apart from the layers of code with no error checking, what on earth possesses you to do a double.Parse, then turn it back to a string ? If you want to make sure the value is a double, use double.TryParse, not a method that, if it fails, throws an exception.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
This is quite a general error message.
You will need to check that all code referenced in the c# is correct at time of processing:
i.e. dont refer to a control in c# which doesnt exist in aspx page
For example you could be finding a control that doesnt exist or
Saba02 wrote: QueryString["idLabel"]);
the above might not exist or be transferring
Can you post your aspx?
|
|
|
|
|
Hello all,
In a data table in am getting number of rows present is dataset returned by query.If my datatable contain 15 rows the i want to remove last 5 rows.I need only 10 rows in datatable and bind that rows to datalist.
So how can i remove additional rows (more than 10) from data table.
<br />
QuestionCount =0<br />
QuestionCount = QuestionCount + questionDs.Tables(0)<br />
Please help me.
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
The most logical way to do this, is to do it in the data layer.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Can u tell me how can i do this using data layer?
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|