|
i am keeping all the Menu names in the xml file(menu.xml) and binding that xml into dataset(Server.Mappath(~/menu.xml)) and displaying in the page.i am getting the following error message in some machines "Invalid URI: There is an invalid sequence in the string", but it is working fine for some machines. what is the reason for this.
|
|
|
|
|
There might be some invalid characters. Try something with server.urlencode and urldecode.
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Can i bind the xml file into the Dataset using with Server.UrlEncode
Eg: Dim ds as Dataset=Server.UrlEncode(server.mappath(~/menu.xml))
|
|
|
|
|
Perhaps if you posted the string that gives the error someone may be able to provide an answer.
|
|
|
|
|
Couldn't find from where i am getting this error. The Same source code is working fine for some machines but not for few machines. Error is getting when i am clicking some menu Links. Menu Loading from xml file.
|
|
|
|
|
Are you Using it for Displaying Menu Items..!
Then
Why Dont you use Menu Control and SiteMap PathControl for displaying Menus..!
If this is not your Answer ..!
Post your Code May Be Group wiil Help..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hello,
I have one Fileupload control in usercontrol. And I am loading usercontrol to in panel within updatepanel of page dynamically.
So the scenario is like this :
Masterpage
--- Default.aspx
---- UpdatePanel
--- ASP Panel
---- Usercontrol loaded according to user request.
I have loading the usercontrol dynamically , As User can load the usercontrol multiple times
I can able generate usercontrol while postback of the page.
The problem is, When I click "Upload" button within usercontrol I am not getting postedfile of fileupload
I have also tried following method in usercontrol to solve this problem , but no success yet
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="conditional">
<Triggers>
<asp:PostBackTrigger ControlID="IbUploadT" />
</Triggers>
<ContentTemplate>
<asp:FileUpload ID="fupResource" runat="server" EnableViewState="true" />
<asp:ImageButton ID="IbUploadT" runat="server" ImageUrl="~/App_Themes/White/Images/Add.ICO" Height="16px" onclick="IbUploadT_Click" />
</ContentTemplate>
</asp:UpdatePanel>
Even though the page is postingback , I am not getting the postedfile of Fileupload
Please help me.
Regards,
Milind
|
|
|
|
|
As you're loading your usercontrol dynamically, you've to add it to viewstate dynamically too.
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Yes I am doing it. I can get the values of all controls while postback except Fileuploadcontrol.
|
|
|
|
|
Hi,
We are using ‘Visual Studio Team System 2008 – Development Edition’ IDE to build ASP.NET applications.
Now we planned to carry-out the following activities using this IDE and I am new to using these activities.
* Static Analysis
* Code Metrics
* Profiling
* Code Coverage
Would you please let me know if there are any good reference links/docs that would guide me to do these tasks.
Many thanks.
Regards,
Reshma.
|
|
|
|
|
My Friend This is asp.net Forum..!
Post it in .net framework they may help you..!
If You want To Do in asp.net..!
Explain maore abt your requirements briefly..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hi All,
I am using one grid view in which i m displaying data.
now i am using one item template which consist a link button
for activate and deactive.
I want to display text ACTIVATE or DEACTIVATE based on value store in the database.
if it is 1 then activate
Other wise Deactivat
<asp:GridView ID="gridUserDetails" runat="server" AutoGenerateColumns ="false" OnRowEditing ="gridUserDetails_RowEditing"
OnRowDeleting ="gridUserDetails_RowDeleting" >
<AlternatingRowStyle BackColor="#ffffff" />
<Columns>
<asp:BoundField HeaderText="User Id" Visible ="true" DataField ="login_id" />
<asp:BoundField HeaderText="First Name" Visible ="true" DataField ="first_name" />
<asp:BoundField HeaderText="Last Name" Visible ="true" DataField ="last_name" />
<asp:CommandField ShowEditButton ="true" HeaderText ="Edit" HeaderStyle-BackColor="LightGray" HeaderStyle-ForeColor="black" HeaderStyle-HorizontalAlign ="Center" ItemStyle-HorizontalAlign ="Center" />
<%-- <asp:CommandField ShowDeleteButton ="true" HeaderText ="Delete" HeaderStyle-BackColor="LightGray" HeaderStyle-ForeColor="black" HeaderStyle-HorizontalAlign ="Center" ItemStyle-HorizontalAlign ="Center" />--%>
<asp:TemplateField HeaderText="Activate/Deactivate">
<ItemTemplate>
<asp:LinkButton
ID="lnkDelete"
runat="server"
CommandName="Delete"
Text="Activate/Deactivate"
OnClientClick="javascript : return confirm('Do you really want to \ndelete the item?');">
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
thanks ,
amit patel
|
|
|
|
|
Implement it on RowDataBound event of GridView
|
|
|
|
|
Do it this way
http://msdn.microsoft.com/en-us/library/aa479353.aspx[^]
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
hi all ,
I am using the following thing
is_loggedin is boolean field in database.
for item template
<asp:TemplateField HeaderText="Activate/Deactivate">
<ItemTemplate>
<%# DisplayActive((int)Eval ("is_loggedin")) %>
</ItemTemplate>
</asp:TemplateField>
if (Active > 0)
{
return "Active";
}
else
{
return "Deactive";
}
but i m getting following exception
invalid cast exception is unhandled by code.
thanks,
amit
|
|
|
|
|
Hi
I was asked this question - How do you start consuming a WCF service in advance (read before being implemented/deployed)?
I couldn't think of a very convincing answer and said probably we can generate a proxy and provide some stubs ..etc... you got the idea. Even I was not convinced with myself. The question do make sense as presentation and services are different tiers. One should not be waiting on other in development at least.
Anyways, so I have been thinking since then and need some pointers on this from experts out there. Any suggestions / approaches?.
Thanks
AJ
Follow your goals, Means will follow you ---Gandhi---
|
|
|
|
|
This is Cross Post !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Remove your previous post. Double posting is considered rude.
Edit: Didn't noticed this is ASP.Net forum. You should have posted it in WCF forum.
IMO, this should not be done. Unless you are 100% sure that whatever service/operation contract you have in the initial phase, are going to be the same throughout the devlopement. In case there are any changes in these, presentation layer would also need a change. This might cause problems.
Still, if you wish to proceed like this, then:
Once you have your service contract and operation contract finalized, you can use stubs returning some dummy value. This way, you can have a proxy class which can be used in the presentation layer.
If you are not using proxy class, just host the stubs some where which presentation layer can add as service reference.
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...!!
|
|
|
|
|
|
This is ASP.NET Forum. You please post it over WPF/WCF/WF Forum[^]Forum.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi,
I am new to .NET. I am doing a project in ASP.Net, in that i have a gridview with some rows in it. and Edit and Delete Buttons are there. I want to edit a particular record, i have to click on the edit button, then the form will be displayed with the fields in the disable mode.
i am using RowCommand event for the Edit button, but i am getting an error in the gridview.
Can anyone help me in finding the answer. Its very urgent.
Thanks In advance,
RS
VB.Net
|
|
|
|
|
|
Hi,
Thanks for your reply.. i tried using the given sites. My problem was solved. Thank You.
RS
VB.Net
|
|
|
|
|
If the post helped you, don't forget to marked them as answer.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Sorry i didn't get the answer. it worked for the first time. I have given the response.redirect(page & querystring). without the query string it is redirecting to the next page, but when i am giving the query string i am getting the error. So i removed the query string and given in the row command event like msgbox("Test"). But i am getting the following error.
[HttpException (0x80004005): The GridView 'gdvOutlets' fired event RowEditing which wasn't handled.]
System.Web.UI.WebControls.GridView.OnRowEditing(GridViewEditEventArgs e) +322
System.Web.UI.WebControls.GridView.HandleEdit(Int32 rowIndex) +60
System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +679
System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +214
System.Web.UI.WebControls.GridView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +242
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3824
Regards,
RS
VB.Net
|
|
|
|