|
Johndas wrote: Please suggest me,Is i am missing while the passing the value in
Are you doing it using JavaScript or From Codebehind ?
If you are doing it from Server Side Code Behind Try This :
string accountId="123";
Response.Redirect("Default2.aspx?AccountID=" + accountId);
Or If you still getting the error please show us the code.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi all,
i am new to ajax.I know the basic use of update panel.
But my problem is
I have to 2 update in first update i want to add value to the database.after insertion sucessful.
i want to show these value in dropdown which is in panel 2.
and second update panel is in different column
Thanks and regards,
Amit Patel
|
|
|
|
|
go through below. all your queries will remove.
http://www.asp.net/learn/ajax/
Regards
Keyur Satyadev
|
|
|
|
|
Set the update panel mode to conditional and use updatepanelid.update()
One person's data is another person's program.
--J.Walia
|
|
|
|
|
Dear All,
i have developed a web application in vs2005 and i have to update it. now i am working in vs2008. so can i open it and change it in this new version of vs. if yes then what changes i have to do in web.config file.
(i used ajax extension in vs2005.)
before posting this thread i tried to do same but the ajax extension is not working properly in internet explorer and also gives script error and the web.config file also get changes when i deployed it.
please reply me..
Thanks!
|
|
|
|
|
Go to this link and download the latest toolkit for vs2008:
http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33804
One person's data is another person's program.
--J.Walia
|
|
|
|
|
m trying to export crystal report to PDF using parameters..
Please suggest a good link from which i can get the code..
Sharing Of Knowledge Provides Solution....
|
|
|
|
|
I Have a string
<Parameters>
<UserProfileState>0</UserProfileState>
<Parameter>
<Name>Report_Parameter_0</Name>
<Type>String</Type>
<Nullable>False</Nullable>
<AllowBlank>True</AllowBlank>
<MultiValue>False</MultiValue>
<UsedInQuery>False</UsedInQuery>
<State>MissingValidValue</State>
<Prompt>Report_Parameter_0</Prompt>
<DynamicPrompt>False</DynamicPrompt>
<PromptUser>True</PromptUser> </Parameter>
<Parameter> <Name>Report_Parameter_1</Name>
<Type>String</Type> <Nullable>False</Nullable>
<AllowBlank>True</AllowBlank>
<MultiValue>False</MultiValue>
<UsedInQuery>False</UsedInQuery>
<State>MissingValidValue</State>
<Prompt>Report_Parameter_1</Prompt>
<DynamicPrompt>False</DynamicPrompt>
<PromptUser>True</PromptUser>
</Parameter> </Parameters>
I want to do string manipulation with this and i want to get the value of
<Name>Report_Parameter_0</Name>
they are 2 <Name>
its not xml ..!
how to do in good method.!
any help is greatly appreciated..!
|
|
|
|
|
Please do not cross post.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
What A discovery Columbus..!
In Different Forum..!
|
|
|
|
|
CoderOnline wrote: I Have a string
<parameters>
<userprofilestate>0
<parameter>
<name>Report_Parameter
.....
......
The string that you have mentioned is nothing but XML String . So My suggestion is that please don't thing about to use String Manipulation Or Regx to get the particular value.
So, what you can is, convert the XML string to XMLDocument and easily use XPath to find out the value of particular tag :
Here is one sample example :
XPathDocument Xdoc = new XPathDocument(XMLFile);
XPathNavigator Xnav = Xdoc.CreateNavigator();
XPathExpression expression;
expression= nav.Compile("/Parameters/Parameter/Name");
XPathNodeIterator Xiterator = Xnav.Select(expr);
Now using Xiterator , you can easily get the value .
This will help you for all kind of search over the XML String.
Let me if you have any doubts regarding the same.
Thanks !!
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Thanks Abhi I will Look into it.,.!
|
|
|
|
|
You Can Do Easily with the help of Xml..!
You ask the same question in c# ..!So i am Giving it in C#.net with windows..!
Use the code below
string XML = " <Parameters> <UserProfileState>0</UserProfileState> <Parameter> <Name>dbname</Name> <Type>String</Type> <Nullable>False</Nullable> <AllowBlank>False</AllowBlank> <MultiValue>False</MultiValue> <UsedInQuery>True</UsedInQuery> <State>MissingValidValue</State> <Prompt>dbname</Prompt> <DynamicPrompt>False</DynamicPrompt> <PromptUser>True</PromptUser> </Parameter> </Parameters>";
System.Xml.XmlDocument Document = new XmlDocument();
Document.LoadXml(XML);
foreach (XmlNode n in Document. SelectSingleNode ("Parameters/Parameter/Name").ChildNodes )
{
MessageBox.Show(n.InnerText);
}
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Thanks..!
You are the Man..!
|
|
|
|
|
I am flattered ...!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hi Team,
I am having SSRS project. I have few doubts
1. How to call my SSRs report on click of button in ASP.NET website.
2. How to give connection string when I deploy my application in Test/ Production Server
please guide me
|
|
|
|
|
Hi Siddisagar,
siddisagar wrote: 1. How to call my SSRs report on click of button in ASP.NET website.
Hope you have already designed the SSRS reports and hosted the same on IIS Server.
Now you need to do the following steps .
First : Add Microsoft.Reporting.WebForms namespace with your ASP.NET Web application . This contains methods and properties for the ReportViewer Web server control.
<%@ Register Assembly="Microsoft.ReportViewer.WebForms Namespace="Microsoft.Reporting.WebForms" TagPrefix="SSRSWeb" %>
Second : SSRS viewer assembly will add the ReportViewer control with your web application which you can use to featch the data from SSRS to your aspx page.
<SSRSWeb:ReportViewer runat="server" Width="500px" Height="700px" ID="SSRSViewer">
</SSRSWeb:ReportViewer>
Third : Add Button Click Code Behind For view the Reports
SSRSViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
SSRSViewer.ServerReport.ReportPath = "MyReports";
SSRSViewer.ServerReport.ReportServerUrl = new Uri("http://localhost/ssrsreports");
You are done !!
siddisagar wrote: 2. How to give connection string when I deploy my application in Test/ Production Server
You are talking for ASP.NET web application connection string or what ? I guess you need to change only in config file . Nothing else.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
siddisagar wrote: How to call my SSRs report on click of button in ASP.NET website
Use Report Viewer and display tha report in reportViewer..!
here is the sample code which i done previously
DataView dv = new DataView();
dv = dAccess.GetDataView();
ReportDisplay(dv);
private void ReportDisplay(DataView dv)
{
reportViewer.LocalReport.ReportPath = "Report.rdlc";
reportViewer.LocalReport.DataSources.Add(new ReportDataSource("AdventureWorksDataSet_CreditCard", dv));
reportViewer.LocalReport.Refresh();
}
If You have Any More Doubts in ssrs reports Feel Free to ask me..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hi
I have a requirement in which i want to create an aspx form in which
I want to define the name of the controls in the xml file and on the basis of the xml file i want to create the aspx form.
if in the xml form there are 10 controls then dynamically 10 controls will be created
i have following type of xml
<MasterType Type="PM">
<Controls>
<Control ControlName="label1" ControlType="Label">
<Value>
this is value
</Value>
</Control>
<Control ControlName="txtName" ControlType="TextBox">
<Value>
this is value
</Value>
</Control>
<Control ControlName="ddlSex" ControlType="DropDownList">
<Value>
this is value
</Value>
</Control>
</Controls>
</MasterType>
if you have any idea please share with me
I will be thankful to you all
|
|
|
|
|
Hi Dharam,
This is quite general scenario where we need to create aspx page at runtime from xml.
Below are the few steps that you need to follow.
Step 1 : Create XML as per requirement of Page . That you are already defined.
Here along with Control Type and name you can also define all other properties. I will suggest you to use different property tag for controls for easily understanding.
Step 2 : Create XSLT style to transform our XML schema
You need to create XSLT in the way where you can iterate through each and every propery of an control.
Note : Using XSLT you can also mention the validation control too.
Step 3 : Now using Code behind Transform XML using XmlDocument and XslTransform
Step 4: Finally Add the output result in page control hierarchy
Control Pagectrl = Page.ParseControl(OutPut);
Page.Controls.Add(Pagectrl);
Hope this will help you to move ahead.
Thanks !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
I am relatively new to website design and programming and have been learning both for the past few months. While ASP.Net is awesome, I feel that in terms of website layout and design, Dreamweaver CS4 is superior to Visual Web Studio 2008. I could create a simple but great looking website using Dreamweaver within half an hour, yet find it a bit more difficult to do so using Visual Web Studio (things just don't seem to fall in the right places). What do you guys think?
How about designing the general layout and master page using Dreamweaver, and then put in all the controls/programming in Visual Web Studio?
|
|
|
|
|
It depends on your preference. Whatever you do, the resultant html should be neat, simple and follows all necessary standards.
|
|
|
|
|
Dreamweaver is only for UI designing while VS is designed for multipurpose. So you won't get all the luxury in VS which you have in Dreamweaver. One possible thing is to design the webpage on dreamweaver (or whatever editor you like) and copy the HTML to VS.
Best wishes,
Navaneeth
|
|
|
|
|
HI,
I am creating a questionair form. For that, I have a bunch of radioList inputs on my page. Those are ASP.NET controls. I am trying to call a javascript method which i have defined at the top of the page. But it fails to call that method and gives me some sort of a system is undefined error.
I want to implement that if someone select an option 1 from radiobuttonlist control it should display an image. and if option 2 is selected text should be displayed.
So how can i call a javascript method ??
please help.
|
|
|
|
|
Hi,
just debug it using Visual Studio or IE developer tool.
|
|
|
|