|
No need to ask google..even VS Studio IDE will answer your question....
use- string.Substring() method
|
|
|
|
|
If this is the level of your knowledge, you should give up on this forum, and read a book, probably a dummies level book, so you have some sort of basic clue about what you're doing.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
is it possible to put tabs in down position(at the position of footer) in ajax tab......plz guide me a bit..............
|
|
|
|
|
|
I am opening an panel when i click newuser linkbuttton. Panel consists of 4 diff. radiobuttons
wen i select an radio button option..it should navigate to new page
<asp:LinkButton ID="linkNewUser" runat="server" style="z-index: 1; left: 42px; top: 170px; position: absolute; height: 21px; width: 76px">NewUser</asp:LinkButton>
<asp:Panel ID="panelSelection" runat="server" CssClass="modalPopup" style="display: none" >
<asp:RadioButtonList ID="RadioButtonList1" runat="server" >
<asp:ListItem Value="0">Patient</asp:ListItem>
<asp:ListItem Value="1">Doctor</asp:ListItem>
<asp:ListItem Value="2">Pharmacy</asp:ListItem>
<asp:ListItem Value="3">Lab</asp:ListItem>
</asp:RadioButtonList><br />
<p style="text-align: center;">
<asp:Button ID="OkButton" runat="server" Text="OK" OnClick="OkButton_Click" />
<asp:Button ID="CancelButton" runat="server" Text="Cancel"/>
</p>
</asp:Panel>
<ajaxToolKit:ModalPopupExtender ID="linkNewUser_ModalPopupExtender" runat="server"
TargetControlID="linkNewUser"
PopupControlID="panelSelection"
BackgroundCssClass="modalBackground"
OkControlID="OkButton"
CancelControlID="CancelButton"
DropShadow="true">
</ajaxToolKit:ModalPopupExtender>
protected void OkButton_Click(object sender, EventArgs e)
{
if (RadioButtonList1.SelectedItem.Text=="Patient")
{
Response.Redirect("~/PatientRegDetails.aspx");
}
else if (RadioButtonList1.SelectedValue=="1")
{
//this has to be closed
}
}
Here OKButton_Click event is not fired.
|
|
|
|
|
I think OKControlId Property of ModalPopup Control Extender and onClick of the Ok Button is in conflict. When you specify the OkControlId of ModalPopupExtender then it won't execute the button OnClick Event. So just remove the OkControlId property of ModalPopupExtender.
|
|
|
|
|
I have removed it and tried but still the OKButton_Click is not fired
|
|
|
|
|
I have tried a lot..but unable to find the solution..
I have removed okcontrolId property too..help me
|
|
|
|
|
Hello Every one
i am getting an error in default.aspx page when i publish my website and run the default.aspx text file in any browser
The error is like:
<%@ page language="C#" autoeventwireup="true" inherits="_Default, App_Web_i2fblcad" %>
I searched for such error but cannot find any help ..
Please Suggest What shall i do..
Thank You..
|
|
|
|
|
Is that the error?
|
|
|
|
|
nazimghori wrote: <%@ page language="C#" autoeventwireup="true" inherits="_Default, App_Web_i2fblcad" %>
where is the error my friend
if You are getting only the header .Then the site is not deployed properly.I think.
If It Helps Click It as Answer
|
|
|
|
|
Hi,
Delete all files inside bin folder in live site and upload again.
|
|
|
|
|
hello
App_Code.compiled
App_Code.dll
App_Web_oyclc8-d.dll
These are files in my bin folder and i think so if i delete these folders the application would not work..
i tried deleting these files in my remote computer and then run my default.aspx page in browser but it the same error continue...
|
|
|
|
|
Follow Dhanasekarans Reply ..!It may Help..! Once I Got Resolved tht way..!
If It Helps Click It as Answer
|
|
|
|
|
I have a popup window js code where I am trying to put a name to that window. Even though I put the name, it is just not displaying. Following is my code. May i know please where I am doing wrong?
StringBuilder javascriptFunctionSB=new StringBuilder();
javascriptFunctionSB.Append("function DisplaySecurityGroupSummary() ");
javascriptFunctionSB.Append("{");
javascriptFunctionSB.Append("var title=\'" + GetLocalResourceObject("SecurityGroups").ToString() + "\';");
javascriptFunctionSB.Append("var summaryPopup = window.open(\"\",\"mywindow\" , \"menubar=0, resizable=0, width=350, height=350,scrollbars=1,toolbar =1\");");
javascriptFunctionSB.Append("summaryPopup.document.getElementsByTagName(\"body\")[0].innerHTML = \"\";");
javascriptFunctionSB.Append("summaryPopup.document.getElementsByTagName(\"body\")[0].innerHTML = \"" + summarySB.ToString() + "\";");
javascriptFunctionSB.Append("summaryPopup.moveTo(300, 300);");
javascriptFunctionSB.Append("summaryPopup.focus(); return false;");
javascriptFunctionSB.Append("}");
Page.ClientScript.RegisterClientScriptBlock(this.GetType(),"DisplaySecurityGroupSummary",javascriptFunctionSB.ToString(),true);
Please help.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
you can set it like
javascriptFunctionSB.Append("summaryPopup.document.Title='Title to be displayed'");
|
|
|
|
|
Sorry for late reply. Thanks for the same.
I tried to put the code and run the appln, but I am getting the error "object Expected" yellowish line highlighted at the code ,
onclick="return (DisplaySecurityGroupSummary());"
I am not getting any clue why the error is happening. Below is my code:
StringBuilder javascriptFunctionSB=new StringBuilder();
javascriptFunctionSB.Append("function DisplaySecurityGroupSummary() ");
javascriptFunctionSB.Append("{");
javascriptFunctionSB.Append("var title=\'" + GetLocalResourceObject("SecurityGroups").ToString() + "\';");
javascriptFunctionSB.Append("var summaryPopup = window.open(\"\",\"\" , \"menubar=0, resizable=0, width=350, height=350,scrollbars=1,toolbar =1\");");
javascriptFunctionSB.Append("summaryPopup.document.Title = 'mywindow')");
javascriptFunctionSB.Append("summaryPopup.document.getElementsByTagName(\"body\")[0].innerHTML = \"\";");
javascriptFunctionSB.Append("summaryPopup.document.getElementsByTagName(\"body\")[0].innerHTML = \"" + summarySB.ToString() + "\";");
javascriptFunctionSB.Append("summaryPopup.moveTo(300, 300);");
javascriptFunctionSB.Append("summaryPopup.focus(); return false;");
javascriptFunctionSB.Append("}");
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
First of all, there was mistake in the code that i have provided to you. It should be
javascriptFunctionSB.Append("summaryPopup.document.title = 'mywindow')");
instead of
javascriptFunctionSB.Append("summaryPopup.document.Title = 'mywindow')");
Now the problem of object expected may be in this line
javascriptFunctionSB.Append("summaryPopup.document.getElementsByTagName(\"body\")[0].innerHTML = \"" + summarySB.ToString() + "\";");
As it would render the string provided by you in the body of the pop up window. so just make sure that the summarySB.ToString() results in a valid html. you can view it in debug mode.
|
|
|
|
|
Message Posted Under Web- Development
modified on Thursday, September 24, 2009 4:29 AM
|
|
|
|
|
VikashGohil wrote: Can somebody tell me why it is not working.
Can you tell me how is this related to ASP.Net?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hello friend ,I am dispying a databse data in to grideview control.But porblem is ,i want to give the funcationality to change the order of column at runtime.Means i can change the order of column by just pick the column and put it where i want .Hoe to do this .Guide me
|
|
|
|
|
|
What is scope of Viewstate Variable?
|
|
|
|
|
prasadnjoshi wrote: What is scope of Viewstate Variable?
Please read this article,
Beginner's Guide To View State [^]
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Before flooding this forum with inane questions ( that all have the same title ), why not read a book or two ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|