I found problem after Clicking image button in my webpage.It was a runtime error generated that popup and ask for debug in IE or VS. I found the meassage "Method Not found "Webform_Postbackwithoptions" . If anyone know please help me up.
//check whether a culture is stored in the session
if (culture.Length > 0) Culture = culture;
//set culture to current thread
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(culture);
Thread.CurrentThread.CurrentUICulture = new CultureInfo(culture);
Session["LanguagePreference"] = culture;
//call base class
Now I am trying to use urlrewrite here for which I have added reference and defined the regex too.
The problem is when I change the language when on a urlrewritten page, when doing Server.Transfer(Request.Path); it takes the url of the path but I need the original url for changing the language.
Any suggestions how I can get the original path(url) for that.
I am writting a server side web page that receives a HTTP POST from our environmental system, InfraStruXure from APC. I can loop through the Server Variables and save that information...
For Each x In Request.ServerVariables
Functions.WriteToLog(x & " = " & Request.ServerVariables(x))
I can see that a file, called xmlalert, is being sent with...
Dim MyNameArray() As String = Request.Files.AllKeys
For Each MyName As String In MyNameArray
Functions.WriteToLog(MyName & Environment.NewLine)
But how do I access the contents of this file? I remember in the past that I needed to check the HTTP_CONTENT_LENGTH and watch for the "boundary", and put that stream into a byte array. But I can not remember how to do that.
' Get the HttpFileCollection.
Dim hfc As HttpFileCollection = Request.Files
For Each h As String In hfc.AllKeys
' Add an item to the BulletedList if a file
' was specified for the corresponding control.
If (hfc(h).ContentLength > 0) Then
I would not have helped you if this had appeared before I replied. How rude. You want instant answers, find somewhere that you can pay for them. If you ask for free answers, 20 minutes is not too long to wait.
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.
yes sir i have used dataset and have used crystal report.
now i want ot populate my columns through coding.
when i m trying to create the object of crystal report.
its not workin...
i have used this function to bind to crystal report.
public void BindReport()
SqlClient.SqlConnection myConnection = new SqlClient.SqlConnection();
myConnection.ConnectionString = "server= (local)\\NetSDK;database=pubs;Trusted_Connection=yes";
SqlClient.SqlCommand MyCommand = new SqlClient.SqlCommand();
MyCommand.Connection = myConnection;
MyCommand.CommandText = "Select * from Stores";
MyCommand.CommandType = CommandType.Text;
SqlClient.SqlDataAdapter MyDA = new SqlClient.SqlDataAdapter();
MyDA.SelectCommand = MyCommand;
Dataset1 myDS = new Dataset1();
//This is our DataSet created at Design Time
//You have to use the same name as that of your Dataset that you created during design time
CrystalReport1 oRpt = new CrystalReport1();
// This is the Crystal Report file created at Design Time
// Set the SetDataSource property of the Report to the Dataset
// Set the Crystal Report Viewer's property to the oRpt Report object that we created
CrystalReportViewer1.ReportSource = oRpt;
i have added namespace:
public void BindReport()
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["BillingSystem"].ConnectionString);
string str = "Select * From Purchase";
SqlCommand cmd = new SqlCommand(str, conn);
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;
DataSet1 ds = new DataSet1();
ReportClass cr = new ReportClass();
CrystalReportViewer2.ReportSource = cr;
Error: cr.SetDataSource(ds);->value cannot be null.
hi to all .. i want to make a functionality in which, on mouseover event of a link button or hyperlink a list of categories appears and you should select one category("similar as "http://www.ebay.com/" on categories button )
var obj = new ActiveXObject("WbemScripting.SWbemLocator");
var s = obj.ConnectServer(".");
var properties = s.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration");
var e = new Enumerator (properties);
output='<table border="0" cellPadding="5px" cellSpacing="1px" bgColor="#CCCCCC">';
output=output + '<tr bgColor="#EAEAEA"><td>Caption</td><td>MACAddress</td></tr>';
var p = e.item ();
output=output + '<tr bgColor="#FFFFFF">';
output=output + '<td>' + p.Caption; + '</td>';
output=output + '<td>' + p.MACAddress + '</td>';
output=output + '</tr>';
output=output + '</table>';
The above code will work fine for IE.
ASP based code example is as
Copy and paste the two ASPFiles below
The first ASP file- NIC5.ASP
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<title>WMI Scripting HTML</title>
<script FOR="foo" EVENT="OnCompleted(hResult,
pErrorObject, pAsyncContext)" LANGUAGE="JScript">
<script FOR="foo" EVENT="OnObjectReady(objObject,
if(objObject.IPEnabled != null && objObject.IPEnabled !
= "undefined" && objObject.IPEnabled == true)
if(objObject.MACAddress != null &&
objObject.MACAddress != "undefined")
MACAddr = objObject.MACAddress;
if(objObject.IPEnabled && objObject.IPAddress(0) !=
null && objObject.IPAddress(0) != "undefined")
IPAddr = objObject.IPAddress(0);
if(objObject.DNSHostName != null &&
objObject.DNSHostName != "undefined")
sDNSName = objObject.DNSHostName;
ID="info"> </span>. </FONT>
00600806D9B6" id="locator" VIEWASTEXT>
var service = locator.ConnectServer();
var MACAddr ;
var IPAddr ;
<form method="POST" action="NICPost.asp" id="formfoo" name="formbar">
<input type="hidden" name="txtMACAddr">
<input type="hidden" name="txtIPAddr">
<input type="hidden" name="txtDNSName">
This is the second file. It is an ASP page, but you could change it to
plain HTML and use Java to retrieve the form field values, if you
Network Interface Card Information Page
You are at IP Address <STRONG>
Your MAC address on your network card is <STRONG>
Your DNS Host name is <STRONG>
To confirm your IP and MAC address information, go to
the command prompt and
ASP reports that your IP Address is <STRONG>
</STRONG>which is your external WAN IP address that
anyone can see,
but maybe be shared by hundreds of users if you use Net
through a common router.