|
can any one please guide me how can i pass multiple stored procedure names to a crystal report???
i have a crystal report rpt1 and i want to pass sp1,sp2,sp3 from C# code behind file how is it possible???
i dont wanna use data set i am passing parameters and descrete values to crystal report.
or i will have to create file same file with three stored procedure in Sea Gate Crystal report viewer????
umerumerumer
|
|
|
|
|
Dear
You have to create one main report and seprate reports for each stored procedue and call then as a sub report in the main report.
With Regards
Vivek
|
|
|
|
|
iam using javascript window.open method to open child popup window and want to retreive some values from parent to child window using request. form as iam using query string for it but the values are too large and the length of query string is very big now
please tell me any solution for this
|
|
|
|
|
You can do one thing, you acn access the variable of parent page from the chaild page so without passing it as a querystring ,you can directly access from parent page.
Another way,you can use session for it
Cheers!!
Brij
|
|
|
|
|
I have a panel that is set to show scrollbars when necessary.
The panel has ResizableControlExtenders attached to it.
When I use a scrollbar on a panel and then release the mousebutton, the drag handle of the respective panel "jumps" - see attachment. I can move the scrollbar to its original position to reset the handle, however.
Please help
|
|
|
|
|
Hi,
I have a report which consists of asp labels as well as gridview.I know how to export grid view,but labels are overlapped when i export it to excel.I have used
Label1.Rendercontrol(hw),also but still the labels are getting overlapped.
Thanks & Regards,
Annu
|
|
|
|
|
Has any one has used singelton pattern in any of their projects,
can i used where i want to access database.
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
Yes you can use.
you can also uase the same in database access.
Generally it 's upto your requirement.do the feasiblity study so you can find which pattern will be better for you.
Cheers!!
Brij
|
|
|
|
|
Mogaambo wrote: can i used where i want to access database.
Depends. I have seen projects using singleton for keeping the connection string.
If you have custom configuration files, you can read them and keep in a singleton instance. So that for all the later requests can be served from this singleton instance.
If you plan to use it for ASP.NET projects, make sure your singleton instance is thread safe.
|
|
|
|
|
Mogaambo wrote: can i used where i want to access database.
That would mean that only one thread at a time can access the database. You would have to use locking so that only one thread at a time uses the singleton, which totally defeats the purpose of using a singleton in the first place.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
|
Mogaambo wrote: Will it means that if two user request a page then. will there be any race condition.
Yes.
|
|
|
|
|
Mogaambo wrote: Will it means that if two user request a page then. will there be any race condition.
I would not call it a race condition. The connection object handles the situation just fine, and throws an exception if another thread tries to use it while it's already in use.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi, I am developing a Login page.In doing so I've encountered a problem of which I've no clue.
All the codes are running properly but an exception is thrown in a line
Response.Redirect("Home.aspx").
The exception says
Source = Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.
Please help me out.
ARINDAM
|
|
|
|
|
Are you using Try..Catch..Finally Block???
Anyway try this
Response.Redirect ("Default.aspx", false);
Arun J
|
|
|
|
|
Thanx friend...It works..But still i am wondering why it happened.Can you explain a bit?B'coz this kind of code i've used several times before,but never got an exception like this.
ARINDAM
|
|
|
|
|
Was that a ThreadAbortException ? Response.Redirect calls Response.End internally which causes the ThreadAbortException . So passing the boolean parameter to Response.Redirect tells not to call end internally.
Can you show the piece of code? Probably we can give some better suggestions.
|
|
|
|
|
Hi,
I am getting the same error at the following line of code:
SPFolder gFolder = web.Folders[documentLibraryName].SubFolders["DeckPlans"];
Comple code is as follow:
public static string GetDeckPlanDocument(string ship)
{
String documentLibraryName;
string deckPlanFile = string.Empty;
documentLibraryName = Constants.Constants.DOCUMENT_LIBRARY_NAME;
SPSite site = SPContext.Current.Site;
using (SPWeb web = SPContext.Current.Site.RootWeb)
{
string content = string.Empty;
SPQuery query = new SPQuery();
SPList myDocList = web.Lists[documentLibraryName];
SPFolder gFolder = web.Folders[documentLibraryName].SubFolders["DeckPlans"];
query.Folder = gFolder;
SPFileCollection filesColl = gFolder.Files;
query.Query = "<Where><Eq><FieldRef Name='Ship'/>" +
"<Value Type='Text'>" + ship + "</Value></Eq></Where>";
//query.Query = "<Query><QueryOptions><Folder>" + @"DeckPlans" + "</Folder></QueryOptions></Query>";
//For nested folder structureSPListItemCollection itemCol = splist.GetItems(spquery)
SPFolder spFolder ;
SPListItemCollection items = myDocList.GetItems(query);
foreach (SPListItem item in items)
{
deckPlanFile = item.File.ToString();
}
}
return deckPlanFile;
}
Please help me on this.
Thanks in advance.
|
|
|
|
|
ARINDAM1981 wrote: But still i am wondering why it happened.
You are not showing the actual error message, but the part of the additional information that tells you that the source code where the exception was thrown can not be shown.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Ya It worked For Me.
Response.Redirect ("Default.aspx", false);
Thanks.
|
|
|
|
|
i have a sql query when this run the query then i don't know how expand the time. but i have been return message when query is done. i am using this query on aspx page. when i click the button then this run query. page processing done. query already running.
now my question is that I want when query is done the my page processing is done. e.g both done same time.
how it is possible. please help me.
|
|
|
|
|
What i understand is that you want your query to finish first and then the page is processed. If this is so then on page load call the query synchronously and wait for its completion. And after it is completed proceed to next step. i.e processing of page
Ahsan Ullah
Senior Software Engineer
MCTS 2.0
|
|
|
|
|
Wait for the completion of the query,then start processing the page.
One thing,if your query taking too much time,say more than 2 sec then it is not good and as per best practices so improve the performance of the query
Cheers!!
Brij
|
|
|
|
|
Hi,
I am looking for a Layout option in VS 2008 to absolute the position so that i can move the control anywhere in the form.
Like http://pics.bbzzdd.com/users/clamum/vs2005absoluteposition.gif[^]
In VS 2008 i found this way out
Tools -> Options, and set HTML Designer -> CSS Styling to "Change positioning to absolute...", but in order to drag the element around you have to drag it by the little white tab on top, and not the element itself.
But the above method does not work to drag button, it works only for textbox..
Any clue ?
Thanks
Andy
|
|
|
|
|
I worked on a project this past summer with another programmer who showed me how he created a method in an object that returns a sqldatareader. He had used it in a winform, so we tried it in a web site so we wouldn't have to write the same reader code over and over again. While we were writing the method, we noticed that we couldn't tell the connection to close without an error being thrown. Now, does the sql connection need to stay open while you are reading from the sqldatareader?
|
|
|
|