|
It's in the root of the site. I'm not sure where the problem is, since when I run the debug it does not go anywhere when I click the button in the GridView. Here is the ASP code of the GridView at frmList.aspx
<asp:GridView ID="grdAll" runat="server" OnRowCommand="MPS_Selected" AutoGenerateColumns="false">
<Columns>
<asp:BoundField DataField="ID" HeaderText = "" Visible="false" />
<asp:BoundField DataField="Name" HeaderText = "MPS Account Name" />
<asp:BoundField DataField="Industry" HeaderText = "Industry" />
<asp:BoundField DataField="SubIndustry" HeaderText = "Sub-Industry" />
<asp:BoundField DataField="Geo" HeaderText = "Geo" />
<asp:BoundField DataField="LocType" HeaderText = "Location" />
<asp:buttonfield buttontype="Button" commandname="Select" headertext="" text="Select"/>
</Columns>
</asp:GridView>
|
|
|
|
|
404 means it cannot find the file. So, put a breakpoint and see what url it is trying to go to. Also, if the url is correct try adding the Everyone group to the folder with full control because you may have an issue where file level security is preventing IIS from seeing the file.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi,
Where do I do that in the file? Sorry for the questions, I am very new to this. I just started a week ago. And I am stuck on finding a way of passing back a value from a page to it's parent page.
Thanks,
|
|
|
|
|
Can you post a screen shot of the file structure maybe?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
This is the method that I use to show a new window, I'm not sure what is wrong but it won't work anymore
protected void btnAll_Click(object sender, EventArgs e)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("<script language='javascript'>");
sb.Append("window.open('frmList.aspx', 'MPS Account List',");
sb.Append("'top=0, left=0, width='500', height='700', menubar=no,toolbar=yes,status,resizable=yes,addressbar=yes');<");
sb.Append("/script>");
Type t = this.GetType();
if (!ClientScript.IsClientScriptBlockRegistered(t, "PopupScript"))
ClientScript.RegisterClientScriptBlock(t, "PopupScript", sb.ToString());
}
|
|
|
|
|
Hey, have you debugged through your code and seen where it exactly crashes? place breakpoints in each function and see what exactly is the problem. Like the app could be failing because the url is incorrect, or it might be trying to parse out a value that is not there from your querystring. Anyway find out exactly where its crashing and il gladly help you.
|
|
|
|
|
Yes, I placed some breakpoints, but when I click on the button where it will pop-up a window it won't stop on the breakpoint..here is the code for the pop-up window and the code for the passing back the value from the gridview to the parent page.
//code for pop-up window
protected void btnAll_Click(object sender, EventArgs e)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("<script language='javascript'>");
sb.Append("window.open('frmList.aspx', 'MPS Account List',");
sb.Append("'top=0, left=0, width='500', height='700', menubar=no,toolbar=yes,status,resizable=yes,addressbar=yes');<");
sb.Append("/script>");
Type t = this.GetType();
if (!ClientScript.IsClientScriptBlockRegistered(t, "PopupScript"))
ClientScript.RegisterClientScriptBlock(t, "PopupScript", sb.ToString());
}
//code for passing value back
public void MPS_Selected(Object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "Select")
{
ClientScript.RegisterStartupScript(this.GetType(), "alert", "<script type='text/javascript'>alert('msg!')</script>");
int index = Convert.ToInt32(e.CommandArgument);
string name = grdAll.Rows[index].Cells[1].Text.ToString();
string Industry = grdAll.Rows[index].Cells[2].Text.ToString();
string SubInd = grdAll.Rows[index].Cells[3].Text.ToString();
string geo = grdAll.Rows[index].Cells[4].Text.ToString();
string location = grdAll.Rows[index].Cells[5].Text.ToString();
Page.Response.Redirect("~/WebForm1.aspx?name=" + name + "&industry=" + Industry + "&subind=" + SubInd + "&geo=" + geo + "&location=" + location);
}
}
|
|
|
|
|
may be you can use
ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('msg!')");
show you info.the Response when you jump another page,that can
use.
did you ?
|
|
|
|
|
what should I put on the 'msg!'? when the place this code on the method it only pop's up msg on the messagebox.
Thanks!
|
|
|
|
|
'msg!' mean info you want to put on this pleace!
string
try{}catch{} this things that all you can put on it!It loooks like UI page
javascript alert(""); Hope can help you
|
|
|
|
|
Hi everybody,
I want to check username entered is already available in sqlserver 2008 database. can anyone help me?
Thanks for any help in Advance
Regards
Anu Koshy
|
|
|
|
|
My SQL skills are almost non-existent, but surely querying for a particular name in a username list or table, will tell you whether it exists or not. Probably some form of
SELECT * from usertable WHERE username = 'name to test'
Programming is work, it isn't finger painting. Luc Pattyn
|
|
|
|
|
Hi,
I am using stored procedure. I tried this sql... But the problem is when executing this stored procedure, I didnt get the return value. If i get, it always be -ve or zero.
Thanks
Regards
Anu Koshy
|
|
|
|
|
So, change the stored procedure to return the value you need. Or, post it here and tell us what you need and we can help.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
on Create Account button click event, write a function to check for UserName already exists by provided the UserName written in textbox as parameter to the function and that function will return a datatable with query in SQL as
SELECT * FROM TableName WHERE UserName = "Value In TextBox"
If datatable has any row, the user exists else not.
- Happy Coding -
Vishal Vashishta
|
|
|
|
|
I beleive the table you are looking for is: sysusers
Something like this ...
select * from sysusers = 'myDesiredUser'
Rememeber the user that you use to issue this query needs to have the necessary security permissions to this system table.
|
|
|
|
|
Oh! the server 2008 is't high ,I am now in user 2005.
But 08 more same with 05 ,may be you can check the user team,
create a new user and give the admin power ,try to enter system!
|
|
|
|
|
How to make a tab control in asp.net with C# in vs 2010
|
|
|
|
|
You can use AjaxControlToolkit for this,
TabControlExtender is the control you have to use.
- Happy Coding -
Vishal Vashishta
|
|
|
|
|
There are a ton of nice, free, jQuery tab plug-ins. Just google jquery tab plugins.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi,
When I open a web page using Visual studio and open a modal popup using a button click event on the server side, the modal popup will open. If I try the same using the debug option, modal popup does not show!
Can anybody help me figure this out? If I run the debug, it hits the code but the modal popup does not show up.
Cheers
Berba
|
|
|
|
|
Can you explain what you mean by the debug option? Are you saying you click Run in Visual Studio and it does not work but if you browse to it in IE, instead of through Visual studio it does work?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
means when i run my project via Visual Studio.. inserting breakpoints in the code and debug the codes
|
|
|
|
|
sir
i want to develop a small website based on the data base. I know litle bit of VB , which are the knowledge is required for the develop of the website
Examble .: Courier company
Regards
mano
|
|
|
|
|
You should really pickup a book or two on ASP.NET and read through them. What is required is too lengthy to be answered fully here.
Failure is not an option; it's the default selection.
|
|
|
|