|
Hi,
Could please explain your steps which u have perform to deploy user control on production server.
Like. How u r building your application.
2. Is there any specific assembly name.
Did u copied all the files which r required. etc.
So thats i can understand better
Regards
Anil Pal
|
|
|
|
|
Hi Anil Pal,
Thanks for your quick reply
We just copied the Footer.ascx from Dev box and pasted in the Production on respective location.
I copied the specific File only not all the files.
Thanks,
Ranga
|
|
|
|
|
Hi,
You also need to copy the concern Dll of the user control in the concern directory. and restart the IIS.
Regards
Anil Pal
|
|
|
|
|
Hi Anil Pal,
Thanks for your quick reply.
We will build the solution and deploy the Concern DLL in the production on next week change.
Let you know the status on next week.
Thanks for your help.
Thanks,
Ranga
|
|
|
|
|
Here's the deal!
I'm creating two drop down lists dynamically in a GridView control and populating the second dropdownlist(let's call it ddl2 from now on) on the basis of the selection on the first dropdownlist control. The crisis is that, for multiple rows on the gridview the ddl2 starts appending values to itself and therefore ends up having repeats of the data it should originally hold.
How do I stop this repeat from happening? My code is as below.
<asp:GridView ID="grd" runat="server" OnRowDataBound="grd_RowDataBound"> <Columns> <asp:TemplateField HeaderText="names"> <ItemTemplate> <asp:DropDownList ID="name" runat="server" OnSelectedIndexChanged="onSelectChangeddl"></asp:DropDownList> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="age"> <ItemTemplate> <asp:DropDownList ID="age" runat="server" AutoPostBack="true"> </asp:DropDownList> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView>
In c# code, i am trying to change the values of the second drop down list based on the value selected in the first. I am doing this as below:
foreach (GridViewRow row in grd.Rows) { DropDownList ddl1 = (DropDownList)row.FindControl("name"); DropDownList ddl = (DropDownList)row.FindControl("age"); if (ddl.SelectedValue.ToString() != "---Select---") { } else { ddl.Items.Clear(); } SqlCommand SPComm = new SqlCommand("someStoredProcedure", myConn); SPComm.CommandType = CommandType.StoredProcedure; SqlParameter param = SPComm.Parameters.Add("@something", SqlDbType.NVarChar, 50); param.Value = something; dr = SPComm.ExecuteReader();
In the above code, all the values in the second drop down list are getting duplicated based on the selected index changed event handler of the first drop down list.
Can anyone help me with this? Been trying all kinds of stuff with this since three weeks now! H-e-L-p!
scarface
|
|
|
|
|
Hi,
I am also seeing the you are facing same kind of problem sice last couple of week. Please send me your complete requirement. at anil.bly@gmail.com
I will develop complete solution for you and send it to u.
Regards
Anil Pal
|
|
|
|
|
hi i am praneeth,
i have populated gridview with hyperlinq column ,it is int column ,if the records is showing zero then i will insert text in gridveiw , the text column linq should navigate to 2 page , whole column exccept the text will be navigating to 1 page , i am having the problem with how to navigate text hyprlinq to 2nd page ,please help me for this requirement.
|
|
|
|
|
Hi,
Please can u come with little bit more details. If you are talking about second page link. What does exatcly u mean to say?
Regards
Anil Pal
|
|
|
|
|
hi , i am populating retailer id column ,in that some are 0 ,so in place of 0 , i am assigning text as "assign id" ,all id's will navigate to edit particuar id page and this "assign id" should go to add page.
|
|
|
|
|
Soory dear, but still i have confusion.
But i am assuming that in case of "0" retailer ID you want to assign some text.
So here is two case:
Case 1: If you dont want to naviagate user to any page. then please assign "#"
Case 2: If you want to navigate user to some particuler page then u need to assign url of the page.
Now please let me know where exactly u r facing problem?
Regards
Anil Pal
|
|
|
|
|
hi , i am navigating whole column to edit retailer page,by using this code in source page
<asp:hyperlinkfield datanavigateurlfields="qretid" datatextfield="RETAILERID" headertext="Retailer ID" xmlns:asp="#unknown">
and assign id is also in same column , assign id should navigate to add retailer page.
|
|
|
|
|
Hello friends . I have proplem receive mail from my asp.net project. I didnt make how can write codes then I can recive mail using pop3. and attachments I want receive mail and attachment then I will download tihs attachment. Pelase Help me my mail : mugla_vedat@hotmail.com please this is my project helpme.
|
|
|
|
|
This is a general C# task, it has nothing to do with .NET. Posting your email address is stupid, it will just get you spam. Have you bothered to try google ?
If you want to receive mail FROM your ASP.NET project, then you want to send mail. Read my article on how to use google for the answer to that question, and examples of how to use google to answer it.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
please send me your link I dint find please help me.
|
|
|
|
|
The article on how to use google is here on code project. If you can't work out how to search this site for my articles, perhaps the whole thing is just beyond you ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi Check the following code
SmtpClient smtpClient = new SmtpClient();
MailMessage message = new MailMessage();
MailAddress fromAddress = new MailAddress(txtEmail.Text);
smtpClient.Host = "mail.xyz.com";
smtpClient.Port = 25;
message.From = fromAddress;
message.To.Add("abc@xyz.com");
message.Subject = "put some subject";
message.IsBodyHtml = false;
message.Body = "your body text";
smtpClient.Send(message);
put this code under your send button event.
|
|
|
|
|
Hi Guys,
I am trying to populate records from pop-up to main window,
I have a GridView1 in pop-up window and I am passing ID from pop-up to main window by using this code..
GridViewRow row = GridView1.SelectedRow;
string str = row.Cells[1].Text;
Response.Write("<script type='text/javascript' language='javascript'>opener.document.getElementById('txtID').value = '" + str + "'; window.close();</script>");
I am successfully passing value to main window from pop-up window.
But I want to populate records by using this “ID” and fill all textboxes values of main window.
I have a Text ChangeEvent which is not working when I am passing value from pop-up to main window.
Is there anyother option to populate records of main window?
Can we call a function of mainwindow from pop-up window(I am using GridView1 and passing value on this event..)
GridView1_SelectedIndexChanged1(object sender, EventArgs e)
Pease Help with sample codes..
Thanks,
|
|
|
|
|
Hi,
Yes u can follow below step to full fill yr requirement.
1.Take the Hidden Field Control on your main Window.
2. Assign the ID to hidden field control from yr pop pup window like below:
window.opener.document.all["ctl00_cnPlaceHolder_hdnFieldId"].value=selectedIDValue;
The above code in Java script.
3. Call the "hdnFieldId" field Value Changed event.
protected void hdnFieldId_ValueChanged(object sender, EventArgs e)
While call the above event you can do wht ever u want.
There can be alternate solution, id dont like this one then let me know.
Feel free to ask any query
Regards
Anil Pal
|
|
|
|
|
Anil thanks ....Could you please provide me other solution?
|
|
|
|
|
I have few Web forms with same controls but different data. Which design pattern is suitable in this scenario?
WebForm 1 (city.aspx) with combobox and grid control
WebForm 2 (state.aspx) with same controls i.e, combobox and grid
WebForm 3 (country.aspx) with same controls i.e, combobox and grid
the structure of 3 Web forms is similar only the content is different at run time.
Instead of 3 .aspx & .cs files i want to refactor and apply design pattern which would suite this scenario. Which design pattern to apply to refactor the code?
|
|
|
|
|
They have design patterns for grouping controls in web forms now ? I'd imagine if you have pages with the same controls, you could make it one page and change the data sources based on a query string parameter. Or you can create a control that you can set data sources for, and consume that in three pages. But, it's just two simple controls, I don't think it's worth it.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
hi,
i have next and previous buttons, when i click next i must get the next xml node value and if i click previous button it should display the previous node value. can anybody help in this regard.
Thanks in advance.
|
|
|
|
|
|
hi, thanks for the help.
Actually i have a webpage which contains previous and next buttons.
in the same page i have a frame where i have to change the value of the iframe src depending on the previous and next buttons. the value will be taken from XML node values.
Please check the xml doc below.
<?xml version="1.0" encoding="utf-8" ?>
<portfolio>
<portfolios id="0808">
<src link="http://www.yahoo.com"></src>
</portfolios>
<portfolios id="0809">
<src link="http://www.gmail.com"></src>
</portfolios>
<portfolios id="0810">
<src link="http://www.codeproject.com></src>
</portfolios>
<portfolios id="0811">
<src link="http://www.xyz.com"></src>
</portfolios>
</portfolio>
and check my backend coding.
protected void imgbtnNext_Click(object sender, ImageClickEventArgs e)
{
//string crnturl = Request.Url.ToString();
XmlDocument doc=new XmlDocument();
XmlNode root = doc.LastChild;
if (root)
{
imgbtnNext.Enabled = false;
}
else
{
string myurl = Request.QueryString.Get("id").ToString();
XmlDataSource xsd = new XmlDataSource();
xsd.DataFile = "~/App_Data/portfolio.xml";
xsd.XPath = "portfolio/portfolios[@id='" + myurl + "']/src";
GridView ds = new GridView();
ds.DataSource = xsd;
ds.DataBind();
iframeprojects.Attributes.Add("src", ds.Rows[0].Cells[0].Text.ToString());
}
}
|
|
|
|
|
Hmmm, seems a bit complicated. Why not loading the document and the use Xpath?
XmlDocument doc = new XmlDocument();
doc.Load("...");
XmlNode oCurNode = doc.SelectSingleNodes("portfolio/portfolios[@id='" + myurl + "']/src");
iframeprojects.Attributes.Add("src", oCurNode.Attributes["link"].InnerText);
Best would be to pass the id of the current node, so that you can find the next one.
Regards
Sebastian
|
|
|
|