|
iam creating a reporting webpage. we have several types of reports like sales , customer,....... if the user selects sales it will redirects to a separate page where they need to enter different parameters using the dropdown,textbox or listbox. for example they have different parameters like product,month,year,location. the user can enter any combinations. like either they select product and location or month and year like any combinations. once they submit the webpage , we have to pass those parameters to the XML and then query the database according to that. hope you've understood my explanation. so for this i just want to know how to send the parameters to the XML and then query the database. Please help me out
|
|
|
|
|
So, you want to know how to build an XML string from parameters that come in, and how to write a database query ? As this is the web development forum, I assume you're not using ASP.NET ( as that has it's own forum ), but then, that means we have no idea what you're using. Can you clarify that you want to know how to create an xml string ( actually, you can do this just by concatenating strings ) and then pass it as a parameter to a stored proc, and what you're using ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Iam using asp.net and C#.net as a backend. We are creating a reporting page in that page, the user will choose the items from the dropdownlists in any combinations of month,year,product,location. once the user selects and submits the form , we have to generate a xml file and pass those parameters to xml and then query the database according to that.do you got any idea to help me out in this?.
Thank you very much for your help
|
|
|
|
|
Can someone help me with how to change gridview column width in asp.net. I am using a session object(datatable) as the datasource to the grid view. I have tried the gridview_databound event to code something like this
grv.cells(0).columnwidth=100
but it did not work
pls help
|
|
|
|
|
you keep a datatable in the session ? Can't you set the width in the aspx ?
BTW, why did you not ask this in the ASP.NET forum, or did you cross post ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all
can any one please How can I retrieve the source code from a site in javascript like source code for www.google.co.uk.
Thanks&&Regards
#sanroop#
|
|
|
|
|
You want to use javascript to get the source for a different site to the one that's running your script ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi,
I have generated text box and radio buttons dynamically for unlimited,but when I wana get the values I`m facing this problem : the textbox is null.
Im using Update panel and here is part of my code to find the control:
for (int i = 1; i < PaxCount; i++)
{
TextBox PaxName = (TextBox)this.FindControl("txbPaxName" + i.ToString());
}
|
|
|
|
|
We have an ASP.NET forum, that's probably the best place to ask. However, if you create them dynamically, if you do it after or during page load, the controls won't ever have viewstate.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
thanks Christian but I think the problem is the input control created doesn`t have run as server.
any idea how add runat server by js!?
|
|
|
|
|
hi all,
can any body tell me how to learn sharepoint . where to start ..
if u have any related material pls forward to me ...
thanks
|
|
|
|
|
|
|
The problem during writing into an existing cookie, after re running my web application
hi to all forums members
can any one tell me what is error in mine code, It create every time a new cookie, but i have to write into existing cookie.
When i close my web application and re running my web application and, adding values into cookies it creates new cookies... why I m unable to understand....
following is my code...
protected void btnAddCokkie_Click(object sender, EventArgs e)
{
CreateAndAddCookiesValue();
}
private void CreateAndAddCookiesValue()
{
//Response.Cookies.Remove("ShowHistoryCookie");
if (Request.Browser.Cookies == true)
{
// Check the cookie Mycookie exist or not
if (Request.Cookies["ShowHistoryCookie"] == null)
{
// If does Mycookie does not exist then create the cookie
HttpCookie aShowHistoryCookie = new HttpCookie("ShowHistoryCookie");
Response.Cookies.Add(aShowHistoryCookie);
// set expires to the datetime maxvalue
Response.Cookies["ShowHistoryCookie"].Expires = DateTime.Now.AddMonths(1);
//Response.Cookies["ShowHistoryCookie"].Expires = DateTime.MaxValue; //DateTime.Now.AddMonths(1)
Response.Cookies["ShowHistoryCookie"]["URL"] += txtUrlLink.Text;
}
//Append UrlLink into existing cookie
else
{
string strCookie = Request.Cookies["ShowHistoryCookie"]["URL"].ToString();
string strCook = strCookie;
strCookie += "|" + txtUrlLink.Text;
char[] splitter = { '|' };
string[] arInfo = new string[10];
arInfo = strCook.Split(splitter);
int count = arInfo.Length;
int intResult=-1;
bool flag = false;
//count to Restrict cookie to Store 10 UrlLink
if (count <10)
{
//check to ensure that no duplicacy in UrlLink of cookies
foreach (string str in arInfo)
{
intResult = str.CompareTo(txtUrlLink.Text);
if (intResult == 0)
{
flag = true;
break;
}
}
if (flag==false)
{
Response.Cookies["ShowHistoryCookie"]["URL"] = strCookie;
}
}
//Sorting cookies to ensure that only ten recents Url link are added only...
else if (count >= 10)
{
foreach (string str in arInfo)
{
intResult = str.CompareTo(txtUrlLink.Text);
if (intResult == 0)
{
flag = true;
break;
}
}
if (flag == false)
{
for (int i = 0; i < 10; i++)
{
//Swaping
if (i + 1 >= 10)
{
arInfo[9] = txtUrlLink.Text;
break;
}
else
{
arInfo[i] = arInfo[i + 1];
}
}
strCookie = arInfo[0] + "|" + arInfo[1] + "|" + arInfo[2] + "|" + arInfo[3] + "|" + arInfo[4] + "|" + arInfo[5] + "|" + arInfo[6] + "|" + arInfo[7] + "|" + arInfo[8] + "|" + arInfo[9];
Response.Cookies["ShowHistoryCookie"]["URL"] = strCookie;
}
}
}
}
else
{
// Else display message that
// the browser does not accept cookies
Response.Write("This Browser does not accept cookies");
}
Vishnu Narayan Mishra
Software Engineer
|
|
|
|
|
Vishnu Narayan Mishra wrote: Cookies.Remove("ShowHistoryCookie");
One sensible thing to do in situations like this, is to define "ShowHistoryCookie' as a const string, and use that variable everywhere, so you never have to track down a typo anywhere and can easily change the value if you want to.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi could'nt understand your solution, my questions is so simple, can u try to straight answer my question..
Vishnu Narayan Mishra
Software Engineer
|
|
|
|
|
I'm sorry, I was trying to point out why your code is nasty and hard to read. Your question involved a ton of code, which was hard to read, and no comments on what you see when you debug the code, so I didn't really take the time to try to decipher it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all,
I am new to asp.net hosting. I want to host my asp.net web page. Can any one tell me which hosting site is best for asp.net.
It is also nice, if the price is low...
Thanks in Advance
Senthil.S
Senthil S
Software Engineer
|
|
|
|
|
If you google ASP.NET hosting, you'll get all the info you can use.
I am using GoDaddy. They are OK.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi
There are so many host hosting provider available that works on local areas you will find them even in your areas also that could provide the hosting in low prices but i think you should go for some good players like:- indiatimes
They provides the good hosting soluiton for windows and linux both platform and all the advance facilities require in the webhosting in the regionable price.
Now dicision is your and that want to pay to the local provider with lower facilities or to the big players which provides better solution and good facilities.
Yogesh Agarwal
|
|
|
|
|
I have heard great things about discount asp and godaddy.
_________________________________________________
Have a great day!!!
-- L.J.
|
|
|
|
|
Hi all,
I want the asp:menu control to work on click. By default it is working on mouse over. I got few button below the menu item and when the user is moving the mouse fast and trying to click the buttons below the menu, some time the menu is popped up and the user is clicking on the menu rather than on the mouse. It there any way I can make the menu work on click so, that I can avoid the user accidentally click on the menu.
Thanks in advance.
-Ram.
|
|
|
|
|
Odds are that you'll have to find your own javascript menu to find one that works on click. Or, examine the code that gets spit out and see if there's a way to change it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi
I have an ajax page for airplane checkin.when I want to choose seat location I have to use image checkbox and get the id of checkbox (seat location) by ajax,but when I use Graphical checkbox component the page post back and other java script checkboxes only support html checkboxes and when I set Run as server they dont have attribute for post back to handle by ajax.
any sujestion to get the value by js and fill in textbox!?
any codes?
thanx.
modified on Wednesday, March 5, 2008 12:40 AM
|
|
|
|
|
Hi Guys,
I am using ASP.Net VB Coding.
Does anyone of you knows how to detect changes from lowercase to uppercase or mixtures of lowercase and uppercase?
Example:
Textbox1.text = "Australia" was then changed to Textbox1.text = "AUstRALia"
Looking at the example it shows here that the user was doing some text changes from "Australia" to "AUstRALia".
Is there a way to check the changes of the textbox value?
Thanks in advance Guys
hifiger2004
|
|
|
|